Net Use Command Syntax

This command uses the following general syntax:

net use [{devicename | *}] [\\computername\sharename[\volume] [{password | *}]] [/user:[domainname\]username] [/user:[dotteddomainname\]username] [/user:[username@dotteddomainname] [/home {devicename | *} [{password | *}]] [/persistent:{yes | no}] [/smartcard] [/savecred] [/delete] [/help] [/?]

Wil je dit op een externe domein computer?

PSEXEC \\COMPUTER -u DOMAIN\ADMINISTRATOR -P PASSWORD "\\NETWORK SHARE\BATCHFILE.BAT"
Dit in de BATCH
net use z: /delete /y
net use z: \\networkshare /USER:domain\username password