Monday, April 7, 2008

Map network Drive

net use \\server\share password /USER:domain\username

/P means persistent.

This means reconnect the share at the next logon.

But for that to work with a password you will also need to save the credentials.

So try this ...

NET USE Z: \\192.168.2.43\mercury password /USER:domain\username /SAVECRED /PERSISENT:YES

Replace password, domain and username with appropriate values ...

NET USE Z: \\192.168.2.43\mercury MrBlobby /USER:BBC\NoelEdmonds /SAVECRED /PERSISENT:YES

Example:

net use h: \\computername\c$ /u:domainname\username "Pasword"

Delete net drive using this command

net use * /delete /y

No comments: