Legacy Command Line Flashcards
Open server configurator.
sconfig
Start powershell in a new shell/window.
start powershell
Start powershell in current command prompt window.
powershell
Set IP address, subnet mask, and gateway.
netsh interface ipv4 set address name=”Ethernet” static 192.168.1.100 255.255.255.0 192.168.1.1
Set DNS server.
netsh interface ipv4 set dns name=”Ethernet” static 8.8.8.8
Set secondary DNS server.
netsh interface ipv4 set dns name=”Ethernet” static 8.8.8.8 index=2
Rename a domain joined computer.
netdom renamecomputer %computername% /newname:computername
Add computer to domain.
netdom join %compputername% /domain:domainname.com /userd:administrator /passwordd:password
Rename a non-domain joined computer.
WMIC COMPUTERSYSTEM WHERE NAME=%COMPUTERNAME% RENAME NAME=”COMPUTER-NAME”
Turn on firewall.
netsh advfirewall set allprofiles state on
View computer name.
hostname
What are the available shutdown options?
shutdown computer, /r is to restart, /t 5 is to add a timer of 5 seconds (default is 30), /c “comment” to add a comment