1.4 Given a scenario, use appropriate Microsoft command line tools. Flashcards

1
Q
  • dir
A

dir displays a list of a directory’s files and subdirectories.

Without parameters, display’s disk’s volume label and serial number, followed by a list of directories and files on the disk.

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

cd displays the name of or changes the current directory.

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

.. moves you back one folder in command line

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

• ipconfig

A

Ipconfig Displays all current TCP/IP network configuration values and refreshes DHCP and DNS settings.

Used without parameters, displayed IPv4 and IPv6 addresses, subnet mask, and default gate for ALL adapters.

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

• ping

A

Ping Verifies IP-level connectivity to another TCP/IP computer by sending ICMP echo Request messages.

The receipt of corresponding echo Reply messages are displayed, along with round-trip times (ex. 54ms)

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

• tracert

A

Tracert Determines the path taken to a destination by sending ICMP echo Request or ICMPv6 messages to the destination with incrementally increasing TTL field values.

Used without parameter, tracert displays help. tracert [/d] [/h ] [/j ] [/w ] [/R] [/S ] [/4][/6]

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

• netstat

A

netstat Displays active TCP connections, ports on which the computer is listening, Ethernet statistics, the IP routing table, IPv4 statistics (for the IP, ICMP, TCP, and UDP protocols), and IPv6 statistics.

Used without parameters, netstat displays active TCP connections.

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

• nslookup

A

nslookup (applies to: Windows Server) Displays information that you can use to diagnose DNS infrastructure.

Before using, familiarize yourself with DNS. The nslookup command-line tool is available only if you have installed the TCP/IP protocol.

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

• shutdown

A

shutdown enables you to shut down or restart local or remote computers one at a time.

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

• dism

A

dism Deployment Image and Management (DISM.exe) CLI tool used to service and prepare Windows images, Windows PE, RE and Windows setup. (.wim, .vhd, or .vhdx) dism • Deployment Image Servicing and Management tool • Manage Windows Imaging Format (WIM) files • Make changes to your image with DISM • Get information about an image • Update applications • Manage drivers • Manage updates • Mount an image • All command-line based • Many different options • Easy to automate

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

• sfc

A

sfc Scans and verifies the integrity of all protected system files and replaces incorrect versions with correct versions.

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

• chkdsk

A

chkdsk Checks the file system and file system metadata of a volume for logical and physical errors. If used without parameters, displays only the status of the volume and does not fix any errors. If used with /f,/r,/x, or /b parameters, it fixes errors on the volume.

Must be a local Administrator à Run as administrator Don’t interrupt chkdsk. Doing so should not leave the volume any more corrupt than it was prior. Just rerun it for repairs. Only used for local disks.

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

• diskpart

A

diskpart Applies to: pretty much everything (Windows (7,8,8.1,10) /Windows Server (2008, 2008R2, 2012,2012 R2, 2016,2019))

This command helps manage PC’s drives (disks, partitions, volumes, VHD). Before you can use the commands, first list, then select object to give focus. After doing so, the object will be able to receive the commands.

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

• taskkill

A

taskkill (Applies to Windows Server also) Ends one or more tasks or processes. Processes can be ended by process ID or image name. replaces the kill tool

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

• gpupdate

A

gpupdate updates Group Policy settings. Run at cmd line: gpupdate /force

This forces the WS to update

[/target:{Computer | User}] [/force] [/wait:] [/logoff] [/boot] [/sync] [/?]

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

• gpresult

A

gpresult Applies to: Windows Server Displays the Resultant Set of Policy (RSoP) information for a remote user and computer.

To use RSoP reporting for remotely targeted computers through the firewall, you must have firewall rules that enable inbound network traffic on the ports.

17
Q

• format

A

Used to format a hard disk in windows. Applies to: Windows. Formats a disk to accept Windows files.

18
Q

• copy

A

copy Copies one or more files from one location to another. copy [/d] [/v] [/n] [/y | /-y] [/z] [/a | /b] [/a | /b] [+ [/a | /b] [+ …]] [ [/a | /b]]

19
Q

• xcopy

A

xcopy Copies files and directories, including subdirectories.

USE ROBOCOPY NOW Xcopy [] [/w] [/p] [/c] [/v] [/q] [/f] [/l] [/g] [/d [:MM-DD-YYYY]] [/u] [/i] [/s [/e]] [/t] [/k] [/r] [/h] [{/a | /m}] [/n] [/o] [/x] [/exclude:FileName1[+[FileName2]][+[FileName3]] [{/y | /-y}] [/z] [/b] [/j]

20
Q

robocopy

A

Copies file data. robocopy [[ …]] [] robocopy /s c:temp d:\backup

21
Q

• net use

A

net use Gives the command to create a mapped network drive or delete a mapped network drive.

Connects a computer to or disconnects a computer from a shared resource, or displays information about computer connections.

22
Q

• net user

A

net user Command-line tool built into Windows Vista.

23
Q

• [command name] /?

A

How to obtain help for that command name. Will list
all switches you can use :

[command name]/? check out current commands from: https://en.wikipedia.org/wiki/Net_(command)

24
Q

• Commands available with standard privileges vs. administrative privileges

A

Privileges • Not all users can run all commands • Some tasks are for the administrator only • Standard privileges • Run applications as normal user • This works fine for many commands

• Administrative/elevated privileges • You must be a member of the Administrators group • Right-click Command Prompt, choose Run as Administrator • cmd, Ctrl+Shift+Enter