Legacy Command Line Flashcards Preview

Windows Server 70-740 > Legacy Command Line > Flashcards

Flashcards in Legacy Command Line Deck (12):
1

Open server configurator.

sconfig

2

Start powershell in a new shell/window.

start powershell

3

Start powershell in current command prompt window.

powershell

4

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

5

Set DNS server.

netsh interface ipv4 set dns name=”Ethernet” static 8.8.8.8

6

Set secondary DNS server.

netsh interface ipv4 set dns name=”Ethernet” static 8.8.8.8 index=2

7

Rename a domain joined computer.

netdom renamecomputer %computername% /newname:computername

8

Add computer to domain.

netdom join %compputername% /domain:domainname.com /userd:administrator /passwordd:password

9

Rename a non-domain joined computer.

WMIC COMPUTERSYSTEM WHERE NAME=%COMPUTERNAME% RENAME NAME=”COMPUTER-NAME”

10

Turn on firewall.

netsh advfirewall set allprofiles state on

11

View computer name.

hostname

12

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