Microsoft Windows Net Use Command

Sometimes people forget that you don’t need to use a drive letter when using the “net use” command. Also it’s good to use the command below when you are crossing domains that are not setup with Trusts and you need to use domain credentials.

Below I’m using the letter L: for my mapped drive:

net use L: \\server\share /user:[domain]\[userid] /persistent:yes

Below I’m not using a letter so I can just use the UNC Path:

net use \\server\share /user:[domain]\[userid] /persistent:yes
start \\server\share

/persistent:yes is optional. Use it if you want the server to restore the connection at each logon.
The start command is also optional. If you don’t use it, you can just type the UNC path into Windows Explorer instead.

More Stories
Basic Palo Alto User Agent/ID Troubleshooting