Microsoft Command-Line Tools
Microsoft Command-Line Tools
Which of the following Command Prompt commands can be used to list all directory’s files and
subdirectories contained in the current directory
o Dir
o Dir *.*
Which of the command-line commands listed below is used for directory traversal
o Cd
Which parameter of the cd command in Windows moves the command-line prompt one folder
up in the directory tree (sets the prompt at the parent folder of the current folder)
o Cd ..
Which of the following commands in Windows Command Prompt changes the current directory
in the root directory
o Cd \
What is the name of an MS Windows command-line utility that can be used to display TCP/IP
configuration settings
o Ipconfig
Which of the answers listed below refers to an ipconfig command parameter used for displaying
the full TCP/IP configuration information for all adapters
o /all
Which ipconfig parameter allows to view the physical address of a Network Interface Card (NIC)
o /all
Which of the following command-line commands in MS Windows are used for resetting the
DHCP configuration settings for all adapters
o Ipconfig /release
o Ipconfig /renew
A command-line utility used for checking the reachability of a remote network host is known as
o Ping
A network command-line utility in MS Windows that tracks and displays the route taken by IPv4
packets on their way to another host is called
o Tracert
Netstat is a command-line utility used for
o Displaying active TCP/IP connections
o Displaying network protocol statistics
Which netstat parameter allows to display all connections and listening ports
o -a
The -b netstat parameter in MS Windows allows to display the name of an application involved
in creating each connection or listening port
o TRUE
Which of the following netstat parameters displays addresses and port numbers in numerical
form
o -n
Which of the following CLI tools can be used for troubleshooting DNS-related problems
o Nslookup
The following command can be used to shut down or restart a local or remote host running MS
Windows
o Shutdown
Which of the following is the correct command for setting the time-out period of 60 seconds
before powering off a Windows host
o Shutdown /s /t 60
Which shutdown command switch in MS Windows Command Prompt forces full system
shutdown and restart of a Windows host
o /r
Which of the following command-line commands enables a full system shutdown and restart an
MS Windows host after a time-out period of 2 minutes
o Shutdown /s /t 120
Which shutdown command switch enables aborting a system shutdown
o /a
A Windows command-line tool used for preparing and modifying contents of Windows images is
known as
o Dism
The sfc command-line utility in MS Windows
o Scans the integrity of all protected system files and replaces incorrect versions w/
correct Microsoft versions
Which sfc switch enables type of file check that scans integrity of all protected system files and
repairs corrupted files when possible
o /scannow
Which of the following is a Windows, OS/2 and DOS command-line tool used for checking file
system and status of the system’s hard drives
o Chkdsk
The /f switch of the chkdsk command-line utility in MS Windows
o Fixes errors on the disk
The /r switch of the chkdsk command-line utility in MS Windows
o Locates bad sectors and recovers readable information
o Fixes errors on the disk
Which of the following commands in Windows Command Prompt launches a text-based
command-line partitioning utility
o Diskpart
Which of the following command-line commands in Windows displays a list of currently running
processes on a local or remote host
o Tasklist
Provided that the process ID of notepad.exe obtained w/ the tasklist command is 1230, which of
the following answers lists the correct syntax for a Windows Command Prompt taskkill
command that would allow to close this application
o Taskkill /pid 1230
Which of the answers listed below refers to the correct syntax for a Windows Command Prompt
taskkill command that would allow to close notepad.exe by providing its imagename
o Taskkill /im notepad.exe
Which of the command-line commands listed below allows for updating multiple Group Policy
settings in MS Windows
o Gpupdate
A command-line command in MS Windows that displays Group Policy information for a machine
or user is known as
o Gpresult
For a newly added hard drive, this command allows to configure it w/ a file system so that
Windows can store information on the disk
o Format
The following command-line command can be used to copy one or more files from one location
to another
o Copy
Which copy command switch verifies that the new files are written correctly
o /v
Which of the copy command switches suppresses the confirmation prompt displayed when
Windows is about to overwrite the contents of an existing file
o /y
Which of the Windows command-line commands allow for copying multiple files or entire
directory trees from one directory to another and for copying files across a network
o Xcopy
o Robocopy
Which of the following command prompt commands in Windows is used for listing a computer’s
connections to shared resources
o Net use
Which of the MS Windows command-line commands lists the user accounts for the computer
o Net user
Which of the following commands in Windows can be used to display help information related
to a specific command-line utility
o Help [command name]
o [command name] /?