2009-05-20

How to permanently map a network drive to a machine on another domain in Windows Server 2003

After a lot of trial and error trying different combinations of switches on the net use command, here is the network drive mapping method that resulted in a drive mapped to a remote machine in a different domain using different credentials that will survive a reboot of the local machine.

At a command prompt I ran:
net use h: \\server\folder /savecred /persistent:yes

I was then prompted to enter my username and password for the remote server, which I did. The drive was then successfully mapped, and the drive was still mapped after the machine was rebooted.