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.