Legacy Command Line Flashcards

1
Q

Open server configurator.

A

sconfig

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Start powershell in a new shell/window.

A

start powershell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Start powershell in current command prompt window.

A

powershell

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Set IP address, subnet mask, and gateway.

A

netsh interface ipv4 set address name=”Ethernet” static 192.168.1.100 255.255.255.0 192.168.1.1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Set DNS server.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Set secondary DNS server.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Rename a domain joined computer.

A

netdom renamecomputer %computername% /newname:computername

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Add computer to domain.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Rename a non-domain joined computer.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Turn on firewall.

A

netsh advfirewall set allprofiles state on

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

View computer name.

A

hostname

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the available shutdown options?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly