question

MattKennedy-7616 avatar image
0 Votes"
MattKennedy-7616 asked ·

Unable to Map Network Drive using %username% variable

We are running a windows server 2012 r2 AD environment and would like to dynamically map user specific network drives at time of logon to domain desktop sessions. We created a network share on a 2012 R2 server with full share and security permissions for the everyone group just to see if it would work however whenever we use the following command on domain authenticated user session

net use H: \\servername\home\%username% OR net use H: \\servername\home\%LogonUser%

we receive the following error:

System error 55 has occurred. The specific network resource or device is no longer available.

In troubleshooting we tried ECHO %username% at a command prompt and receive the correct username. We were able to use the same UNC path above in the builtin "Connect" feature under the Profile tab in AD to get the drive to map correctly. The share is not hidden.

Any help would be greatly appreciated.

azure-active-directoryazure-ad-connectazure-ad-domain-servicesazure-virtual-machines-networking
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

LeonLaude avatar image
0 Votes"
LeonLaude answered ·

Hi,

Q&A currently supports the products listed over here https://docs.microsoft.com/en-us/answers/products (more to be added later on).

Based on my understanding you are using an on-premise Active Directory, I would suggest to reach out to the experts in the dedicated forum below: https://social.technet.microsoft.com/Forums/en-us/home?forum=winserverfiles


(Please don't forget to accept helpful replies as answer)

Best regards,
Leon


·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.