Link to home
Start Free TrialLog in
Avatar of ryank85
ryank85

asked on

Mapped drive stopped working with %username%

I'm trying to map a drive through group policy and create a folder for users profiles. I'm using the below but the drive isn't being mapped. If I remove the %username% the drive gets mapped.

\\SERVERNAME\UserProfiles\%username%

The user I'm testing it with is an administrator and has full control permissions to the 'UserProfiles' folder.
gpresult is showing it is being pulled through.
It's using a drive letter not being used anywhere else.
It has worked in the past.
Windows Server 2008 R2 Standard

Any ideas why this could be happening?
Avatar of Adam Brown
Adam Brown
Flag of United States of America image

How are you deploying? Group Policy Preferences or some other technique?
Avatar of ryank85
ryank85

ASKER

I'm deploying it with Group Policy Preferences.
Press F3 for list. Use this:
%LogonUser%

Open in new window

User generated image
Avatar of ryank85

ASKER

I've tried it with %LogonUser% as well but have the same issue.
Shouldn't the link need to end with a backslash too? Just tossing it out there...
ASKER CERTIFIED SOLUTION
Avatar of Ben Personick (Previously QCubed)
Ben Personick (Previously QCubed)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ryank85

ASKER

Thanks Ben, using the home drive was exactly what I needed to do.
Hey ryank85, glad to help!  Sometimes its the simplest thing right?  :)