ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 164 - SK0-005 discussion

Report
Export

Which of the following commands should a systems administrator use to create a batch script to map multiple shares'?

A.
nbtstat
Answers
A.
nbtstat
B.
netuse
Answers
B.
netuse
C.
tracert
Answers
C.
tracert
D.
netstst
Answers
D.
netstst
Suggested answer: B

Explanation:

The net use command is a Windows command that can be used to create a batch script to map multiple shares. The net use command can connect or disconnect a computer from a shared resource, such as a network drive or a printer, or display information about computer connections. The syntax of the net use command is:

net use [devicename | *] [\\computername\sharename[\u0003volume] [password | *]] [/user:[domainname\]username] [/user:[dotted domain name\]username] [/user:[[username@dotted domain name] [/savecred] [/smartcard] [{/delete | /persistent:{yes | no}}]

where:

devicename = the drive letter or printer port to assign to the shared resource computername = the name of the computer that provides access to the shared resource sharename = the name of the shared resource password = the password needed to access the shared resource /user = specifies a different username to make the connection /savecred = stores the provided credentials for future use /smartcard = uses a smart card for authentication /delete = cancels a network connection and removes the connection from the list of persistent connections /persistent = controls whether the connection is restored at logon

To create a batch script to map multiple shares, you can use the net use command with different drive letters and share names, for example:

net use W: \\computer1\share1 net use X: \\computer2\share2 net use Y: \\computer3\share3 You can also add other options, such as passwords, usernames, or persistence, as needed. To save the batch script, you can use Notepad or any text editor and save the file with a .bat extension12.

Reference: 1 https://docs.microsoft.com/en-us/windows-server/administration/windowscommands/ net-use 2 https://www.watchingthenet.com/create-a-batch-file-to-map-drivesfolders. html

asked 02/10/2024
Jasper Fons
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first