1. Identifying Operations Master Roles
There are many times when you need to know which
server holds which operations master roles. You can get the answer from
different graphical user interfaces. However, it’s much easier from the
command line with the netdom tool (as netdom query fsmo). The following text shows the output within a domain named pearson.pub:
C:\> netdom query fsmo
Schema master DC1.pearson.pub
Domain naming master DC1.pearson.pub
PDC DC1.pearson.pub
RID pool manager DC1.pearson.pub
Infrastructure master DC1.pearson.pub
The command completed successfully.
Note
Operations master roles were previously called flexible single master operations (FSMO) roles.
2. Joining a Computer to a Domain
You can join a computer to a domain from the command prompt using the netdom join command. The following table shows the different switches available with the netdom join
command. Each of these switches is used in the following command, which
joins a computer named dc2 to a domain named pearson.pub:
C:\>netdom join dc2 /domain:pearson.pub
/userd:administrator@pearson.pub /passwordd:*
/ou:"ou=sales,dc=pearson,dc=pub" /reboot:60
netdom Join Machine Switches | Comments |
---|
netdom join computername C:\> netdom join dc2 . . . C:\> netdom join %computername% . . .
| The computername identifies the name of the computer joining the domain. The %computername% variable uses the local computer name. |
/domain:domain /domain:pearson.pub
| Specifies the domain the computer will join. |
/userd:username /userd:administrator
| The user account used to make the connection with the domain specified by the /domain switch. |
/passwordd:{password | *} /passwordd:P@ssw0rd
| The password of the user account specified by /userd. You can use an asterisk (*) and the command will prompt you to enter a password.
Note
The second “d” at the end of /passwordd looks like a typo, but it’s valid. It specifies that this is the password for the /domain component.
|
/ou:oudn /ou:"ou=sales,dc=pearson,dc=pub"
| The
organizational unit where you want the account created. You need to
specify this as a distinguished name. The example specifies the Sales
OU.
Tip
If you don’t use the /ou
switch, the account will be created in the default location. This is
the Computers container by default, but can be redirected to another
location with the redircmp command .
|
/reboot [:number-of-seconds-delay] /reboot: 10
| Reboots
the computer after it’s joined to the domain. The default delay is 30
seconds but you can change it. The example reboots the system 10
seconds after it joins the domain. |
| Uses
a secure credentials popup to specify credentials. You can use this to
supply smartcard credentials. This option is in effect only when the
password value is supplied as *. |