Get-VamtProduct

Windows Server 2012 R2 and Windows 8.1

Get-VamtProduct

Retrieves the record of a product or list of products from a VAMT database.

구문

Parameter Set: Default
Get-VamtProduct [[-ProductName] <String> ] [-DbCommandTimeout <Int32> ] [-DbConnectionString <String> ] [ <CommonParameters>]




자세한 설명

The Get-VamtProduct cmdlet retrieves the record of a product or list of products from a database. The results are saved to a file, or a Microsoft.Licensing.VolumeActivation.Product object is returned.

매개 변수

-DbCommandTimeout<Int32>

Indicates how long waits for a response from the database before timing out. The default value is 30 seconds. You can use the DbCommandTimeout parameter to change the timeout value.


별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-DbConnectionString<String>

Specifies the database that the product or list of products are retrieved from. If no database connection string is provided, attempts to use the database that the user console used on the local computer. If does not find a database, it returns an error. You can find the connection string in the UI in the Preferences dialog box. On the menu bar, click View, and then click Preferences to open the Volume Activation Management Tool Preferences dialog box. The connection string is in the Database Settings section under Current connection string.


별칭

없음

필수 여부

false

위치

named

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-ProductName<String>

Specifies the product information to retrieve. If the ProductName parameter is not included, retrieves all product information in the database.


별칭

없음

필수 여부

false

위치

1

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

이 cmdlet은 일반 매개 변수 -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer 및 -OutVariable을 지원합니다. 자세한 내용은 다음을 참조하세요. about_CommonParameters(http://go.microsoft.com/fwlink/p/?LinkID=113216).

예제

Example 1

This command outputs the list of all products in the database to the specified file.


PS C:\> get-vamtproduct > c:\users\me\windowslist.txt

Example 2

This command returns all “Windows” products whose license status does not equal “licensed”.


PS C:\> $products = get-vamtproduct -productname windows | where { $_.licensestatus -ne 'Licensed' }

관련 항목

커뮤니티 추가 항목

추가
표시: