Enumerates and identifies service accounts during Active Directory domain migrations. A service account is a standard user account that is assigned the Log on as a service user right.
admt service is a command-line tool that is available in the Active Directory Migration Tool (ADMT).
For examples of how this command can be used, see Examples.
Syntax
admt service /n "<ComputerName>"[ "<ComputerName2>"] /sd:<SourceDomain>
Parameters
Parameter | Description | ||||
---|---|---|---|---|---|
/{o|optionfile}:"<OptionFilename>" |
Specifies to use an options file. You can specify the following value for this parameter:
|
||||
/{sd|sourcedomain}:"<SourceDomain>" |
Specifies the name of the domain in which ADMT enumerates service accounts. Enumerating service accounts is a required operation. You can specify the following value for this parameter:
|
||||
/{sdc|sourcedomaincontroller}:"<SourceDomainControllerName>" |
Specifies the name of the domain controller in the source domain. You can specify the following value for this parameter:
|
||||
/{so|sourceou}:"<OUName>" |
Specifies the name of the source organizational unit (OU) that contains the computers that hold the service accounts. You use this parameter only for Active Directory source domains and for computer names that ADMT lists by using their relative distinguished names (also known as RDNs). You can specify the following value for this parameter:
|
||||
/{pre|precheckonly}: {yes|no} |
Verifies that agent deployment succeeded before ADMT enumerates service accounts. You can specify the following values for this parameter:
|
||||
/{prrtry|autoprecheckretry}: {yes|no} |
Verifies automatically that agent deployment succeeded before ADMT enumerates service accounts. ADMT attempts the verification according to the number and interval that you specify.
|
||||
/{prrtryi|autoprecheckretryinterval}: <Minutes> |
Specifies the number of minutes between each retry operation. You can specify the following value for this parameter:
|
||||
/{prrtryn|autoprecheckretrynumber}: <Number> |
Specifies the number of times to retry the operation. You can specify the following value for this parameter:
|
||||
/{n|includename} "<ComputerName>" ["<ComputerName2>"] |
Specifies a computer or a list of computers on which to enumerate service accounts. You can specify the following value for this parameter:
|
||||
/{f|includefile}: <FileName> |
Specifies the name of the file that contains the list of computers on which to enumerate service accounts. You can specify the following value for this parameter:
|
||||
/{d|includedomain} [:recurse] |
Specifies an entire source domain or OU of service accounts to enumerate. You can specify the following value for this parameter:
|
||||
/{en|excludename} "<ComputerName>" ["<ComputerName2>"] |
Specifies which computers to exclude from service account enumeration. You can specify the following value for this parameter:
|
||||
/{ef|excludefile}: <FileName> |
Specifies the name of the file that contains the list of computers to exclude from service account enumeration. You can specify the following value for this parameter:
|
Remarks
In addition to the admt service command-line tool, you can use the Service Account Migration Wizard to identify the member servers and domain controllers that run services by using a service account.
Examples
The following example enumerates the service accounts for a computer named WORKSTATION1 in the CONTOSO domain.
admt service /n "WORKSTATION1" /sd:CONTOSO
The following example enumerates service accounts for a list of computers in the source domain that are contained in an include file that is located at C:\temp\MyListOfComputers.txt.
admt service /o:C:\temp\MyListOfComputers.txt