Find-VamtManagedMachine

Find-VamtManagedMachine

Performs VAMT discovery operations.

구문

Parameter Set: Default
Find-VamtManagedMachine [-QueryType] <DiscoveryType> [-QueryValue] <String> [[-MachineFilter] <String> ] [[-Username] <String> ] [[-Password] <String> ] [-DbCommandTimeout <Int32> ] [-DbConnectionString <String> ] [ <CommonParameters>]

자세한 설명

The Find-VamtManagedMachine cmdlet discovers products either on an individual computer or in a specified domain or workgroup, and then adds them to the database. You can use this cmdlet in a script to periodically run product discovery on a domain or workgroup. You can use this process to determine whether any new computers are present in the domain or workgroup.

매개 변수

-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 discovered products are added to. 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 (ByPropertyName)

와일드카드 문자 허용 여부

false

-MachineFilter<String>

Restricts the search results when used with the QueryType parameter, when the ActiveDirectory value or the WorkGroup value is specified. Do not use the MachineFilter parameter when you specify the Manual value for the QueryType parameter.

별칭

없음

필수 여부

false

위치

3

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-Password<String>

Provides a password if the environment to be checked for products is password-protected.

별칭

없음

필수 여부

false

위치

6

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

-QueryType<DiscoveryType>

Defines what kind of query to use to find the computers. The following values apply to the QueryType parameter:

     -- Manual: When you use this value, you can manually enter a computer IP address or name.

     -- ActiveDirectory: When you used this value, searches the Active Directory domain.

     -- Workgroup: When you use this value, searches the specified workgroup.

     -- LDAP: When you use this value, you can supply a Lightweight Directory Access Protocol (LDAP) query to search for computers that the meet specified conditions. For example, you can use this value in a script to search for new computers that were added to the network within a certain time frame.

별칭

없음

필수 여부

true

위치

1

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-QueryValue<String>

The QueryValue parameter is required when the QueryType parameter is declared. The QueryValue parameter supplies the following values for the specified QueryType:

     -- If QueryType is Manual, QueryValue is the IP address or name of the computer.

     -- If QueryType is ActiveDirectory, QueryValue is the name of Active Directory domain.

     -- If QueryType is Workgroup, QueryValue is the name of the workgroup.

     -- If QueryType is LDAP, QueryValue is an LDAP query to search for computers that meet the specified conditions. For example, you can use this value in a script to search for new computers that were added to the network within a certain time frame.

별칭

없음

필수 여부

true

위치

2

기본값

없음

파이프라인 입력 적용 여부

true (ByValue, ByPropertyName)

와일드카드 문자 허용 여부

false

-Username<String>

Provides a user name if the environment to be checked for products is password-protected.

별칭

없음

필수 여부

false

위치

5

기본값

없음

파이프라인 입력 적용 여부

true (ByPropertyName)

와일드카드 문자 허용 여부

false

<CommonParameters>

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

예제

Example 1

This command finds a computer by looking for the specified computer name.

PS C:\> find-vamtmanagedmachine -querytype manual -queryvalue machinename

Example 2

This command searches the specified Active Directory domain. The search results are restricted to the computers with LabComp in their name.

PS C:\> find-vamtmanagedmachine -querytype activedirectory -queryvalue domainname -machinefilter labcomp*

Example 3

This command searches the specified workgroup. The search results are restricted to the computers with LabComp in their name.

PS C:\> find-vamtmanagedmachine -querytype workgroup -queryvalue workgroupname -machinefilter labcomp*

Example 4

This command searches for computers by using an LDAP query. The search results are restricted to the computers with LabComp in their name.

PS C:\> find-vamtmanagedmachine -querytype ldap -queryvalue "ldap://domainname/??sub?(&(objectclass=computer)(name=labcomp*))"