Set the local administrative password |
At a command prompt, type:
net user administrator *
|
Join a computer to a domain |
- At a command prompt, type on one line:
netdom join %computername% /domain:<domain> /userd:<domain>\<username> /password:*
- Restart the computer.
|
Confirm that the domain has changed |
At a command prompt, type:
set
|
Remove a computer from a domain |
At a command prompt, type:
netdom remove
|
Add a user to the local Administrators group |
At a command prompt, type:
net localgroup Administrators /add <domain>\<username>
|
Remove a user from the local Administrators group |
At a command prompt, type:
net localgroup Administrators /delete <domain\username>
|
Add a user to the local computer |
At a command prompt, type:
net user <domain\user name> /add *
|
Add a group to the local computer |
At a command prompt, type:
net localgroup <group name> /add
|
Change the name of a domain-joined computer |
At a command prompt, type on one line:
netdom renamecomputer %computername% /NewName:<new computer name> /userd:<domain\username> /password:*
|
Confirm the new computer name |
At a command prompt, type:
set
|
Change the name of a computer in a work group |
- At a command prompt, type:
netdom renamecomputer <currentcomputername> /NewName:<newcomputername>
- Restart the computer.
|
Disable paging file management |
At a command prompt, type:
wmic computersystem where name="<computername>" set AutomaticManagedPagefile=False
|
Configure the paging file |
At a command prompt, type:
wmic pagefileset where name="<path/filename>" set InitialSize=<initialsize>,MaximumSize=<maxsize>
Where:
"path/filename" is the path to and name of the paging file.
"initialsize" is the starting size of the paging file in bytes.
"maxsize" is the maximum size of the page file in bytes.
|
Change to a static IP address |
- At a command prompt, type:
ipconfig /all
- Record the relevant information or redirect it to a text file (
ipconfig /all >ipconfig.txt ).
- At a command prompt, type:
netsh interface ipv4 show interfaces
- Verify that there is an interface list.
- At a command prompt, type on one line:
netsh interface ipv4 set address name <ID from interface list> source=static address=<preferred IP address> gateway=<gateway address>
- Verify by typing
ipconfig /all at a command prompt and checking that DHCP enabled is set to No.
|
Set a static DNS address |
- At a command prompt, type on one line:
netsh interface ipv4 add dnsserver name=<name of primary DNS server> address=<IP address of the primary DNS server> index=1
- At a command prompt, type on one line:
netsh interface ipv4 add dnsserver name=<name of secondary DNS server> address=<IP address of the secondary DNS server> index=2
- Repeat as appropriate to add additional servers.
- Verify by typing
ipconfig /all and checking that all the addresses are correct.
|
Change to a DHCP-provided IP address from a static IP address |
- At a command prompt, type:
netsh interface ipv4 set address name=<IP address of local system> source=DHCP
- Verify by typing
ipconfig /all and checking that DCHP enabled is set to Yes.
|
Activate the server locally |
At a command prompt, type:
slmgr.vbs -ato
|
Activate the server remotely |
- At a command prompt, type:
cscript slmgr.vbs -ato <servername> <username> <password>
- Retrieve the GUID of the computer by typing
cscript slmgr.vbs -did
- Type
cscript slmgr.vbs -dli <GUID> .
- Verify that License status is set to Licensed (activated).
|