Mapping Network Drives Across Domains
Posted on 2008-10-14
I need to write a script or cmd that will map a network drive from one domain to another in the same forest. Here is the scenario:
They have one userid and domain they log on to on a daily basis, computer is in that domain.
userid #1: abcd1 domain: abcd1
They need to get to a server share on another domain with a different user id and password.
userid #2: wxyz1 domain: wxyz1
It maps just fine and their access has been set up, I just need a script that will log them on to this every day, as they are not logging into the computer with userid #2.
I have used: "net use w: \\server ip address\share" which does map the drive, but I need it to ask them userid and password to authenticate with the correct user id.
So sorry if confusing.