Windows credential on 2 domains
Hi.
We are using 2 domains at our Company. On one domain we have all our computers (Windows 7) and on the other domain is our fileservers.
Our main domain controller is Windows server 2012 and the file domain controller is Windows server 2003.
On the main domain the user is called USER1 and on the fileserver domain the user is called USER2.
If I map the fileservers using "map network drives" from Windows explorer and I mark "Reconnect at logon" and "Connect using different credentials" All seems to work perfectly. After restart I don't need to type my fileserver password.
Now I disconnect the mapped fileserver and delete all entries in credential manager and map the network drive using the command line:
"Net use Z: \\Fileserver\Share FileserverPassword /User:Fileserver\User2 /Persistent:YES"
"cmdkey.exe /add:Fileserver /user:Fileserver\User2 /Pass:FilserverPassword"
I have the same password on my main domainuser and on the fileserver domain user - but it is not the same userID.
After restart I don't need to type my fileserver password - I have access to the mapped drive.
BUT...
If I disconnect the mapped fileserver and delete all entries in credential manager and then change my maindomain password so I don't have the same password then everything goes wrong.
Again I map using "Net use..." and "cmdkey.exe"
I have now access to the fileserver, but after a restart I have red X over the mapped drive.
If I click on the drive I got prompted for a password.
In credential manager I can see the fileserver entry with the correct user and password.
Now I change my fileserver domain password so it is the same as my main domain user password and restart the pc. I have now access to the mapped drive without typing my fileserver password.
Why do I lose the access to the drive after restart when the password for maindomain\user1 and filedomain\user2 is different?
Please HELP :-)