I am trying to map a Sharepoint location to a drive letter using the net use command.
Our pc is in one domain (CD) and Sharepoint is in another domain (postgbr).
I am running cmd.exe elevated with a Domain Admin account (my account) and trying to map the drive on another users laptop. This needs to be elevated because otherwise the user received an error - System error 5 access is denied.
I know that I should specify the user in the net use command as follows:
net use l: http://sharepoint/address /user:cd\example_user
This is used so that the mapping is applied to the laptop users account instead of my Domain Admin account that was used to elevate cmd. In doing this, we are then prompted for the users password to access Sharepoint but there is no option that I can find to specify the different user account for Sharepoint - it always tries to use the user account in the domain the mapping is being applied to:
Enter the password for cd\kevinh to connect to 'sharepointportal/address/':
Neither the Sharepoint password for kevinh or the CD domain password are accepted here.
I hope that makes sense, I did struggle to explain it clearly so please let me know if any clarification is required.
Is there a way to achieve this mapping to a driver letter via net use command, or any other alternatives?
Thank you, James