I am retiring this website. Please visit my new blog here for all things tech-related: goo.gl/d7D1J

Sunday, October 21, 2012

Map Network Drive From Command Line

Logon scripts in a server environment is a common place to map network drives so the users don't have to. This would then be done from the command line.

net use k: \\shareddrive\folder1

k: = Drive letter used for the mapped drive
\\shareddrive = Name of drive where the folder is located
folder1 = Folder name


It may be necessary to add this shared drive under a different user account due to lack of permissions.

net use k: "\\shareddrive\folder1" password /u:DomainName\UserName /savecred

The italic words will change depending on your password, domain name, and user name.

No comments:

Post a Comment

Web Analytics