This article explains how to use the net use command on a Windows computer. You'll find all the different switches that work with net use and a few examples that show how useful it is.
This command uses the following general syntax:
net use [{devicename | *}] [//computername/sharename[/volume] [{password | *}]] [/user:[domainname/]username] [/user:[dotdomainname/]username] [/user:[username@dotdomainname] [/home {devicename | *} [{password | *}]] [/persistent:{yes | no}] [/smartcard] [/savecred] [/delete] [/help] [/?]
Here are a few different ways you can use this command: