net use map drive with UserPrincipalName not working
I’m having trouble getting a net use map drive command to run on win 7 enterprise x64 (in a workgroup)
that is trying to connect to a 2003 r2 box in a domain
If I run net use z:
\\sernername.domain.com\share /user: UserPrincipalName@upn password
it doesn’t run and returns with System error 86 has occurred. The specified network password is not correct.
But if run it via the GUI & select “connect using different credentials” or
by using /user:domain\sAMAccountName
password in the net use command instead it works perfectly. If I then go and delete the map drive (using
net use z: /del) and then try the net use z: \\sernername.domain.com\share /user: UserPrincipalName@upn password
it works fine
I need to use UserPrincipalName@upn as users in my organization know their UserPrincipalName
put not there sAMAccountName
May 2nd, 2011 3:02am
hi
i recommend you to try the following as i had the same issue with windows vista the syntax must be
\\IP ADDRESS\share-name) not
\\PCNAME\share-name and user must be PCNAME\username instead of UPN.
Hope this will be helpful :)
Abeer
Free Windows Admin Tool Kit Click here and download it now
May 2nd, 2011 7:16am
TeamNewmie wrote:
Im having trouble getting a net use map drive command to run on win
7 enterprise x64 (in a workgroup) that is trying to connect to a 2003
r2 box in a domain
If I run /net use z: \\sernername.domain.com\share
<file://sernername.domain.com/share> /user: UserPrincipalName@upn
password/ it doesnt run and returns with System error 86 has
occurred. The specified network password is not correct.
But if run it via the GUI & select connect using different
credentials or by using /user:domain\sAMAccountName/ /password in
the net use command instead it works perfectly. If I then go and
delete the map drive (using/net use z: del) and then try the net
use z: \\sernername.domain.com\share user: UserPrincipalName@upn
password it works fine
I need to use /UserPrincipalName@upn as users in
my organization know their /UserPrincipalName/put not
there /sAMAccountName/
Have you tried /user: sAMAccountName@domain.com, which is one of the
mostly used values for UserPrincipalName I know of.
And if your users have to enter their credentials anyway, why can't
they resort to solely use the GUI - my users would never try to use the
cmd windows on their own - instead they would be really annoyed, if
they had to use a non-graphical user interface.
Wolfgang
May 2nd, 2011 9:05am
yeah i have tryed /user: sAMAccountName@domain.com and that works the problem is in our organization
the UserPrincipalName is firstname.lastname eg john.citizen will the same account is first initial last name eg jcitizen. We also have a custom UPN suffix as the accounts could be held in one of several domains
in the forest.
The
reason why I'm using a net use command and not the GUI is it's part of a script that maps a drive and then runs a command. this worked perfectly in XP but doesn't in win 7
Free Windows Admin Tool Kit Click here and download it now
May 2nd, 2011 9:13pm
Hi,
Thanks for posting in Microsoft TechNet forums.
As this issue occurs when using script, it is suggested to involve the
Script Center for more accurate information.
Best Regards
Magon Liu
TechNet Subscriber Support
in forum. If you have any feedback on our support, please contact
tngfb@microsoft.com
Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
May 3rd, 2011 7:26am
i end up getting it work by doing a net use \\sernername.domain.com /user:
UserPrincipalName@upn password then run /net use z: \\sernername.domain.com\share
Free Windows Admin Tool Kit Click here and download it now
May 3rd, 2011 6:53pm
Thank you for sharing your solutions and experience here. It will be very beneficial for other community members who have similar questions.Please remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
May 4th, 2011 6:01am