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?
Windows OSWindows Server 2008Active Directory* mapped drive

Avatar of undefined
Last Comment
Ben Personick (Previously QCubed)

8/22/2022 - Mon
Adam Brown

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

ASKER
I'm deploying it with Group Policy Preferences.
Shaun Vermaak

Press F3 for list. Use this:
%LogonUser%

Open in new window

gpp.png
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ryank85

ASKER
I've tried it with %LogonUser% as well but have the same issue.
Scott Silva

Shouldn't the link need to end with a backslash too? Just tossing it out there...
ASKER CERTIFIED SOLUTION
Ben Personick (Previously QCubed)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ryank85

ASKER
Thanks Ben, using the home drive was exactly what I needed to do.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Ben Personick (Previously QCubed)

Hey ryank85, glad to help!  Sometimes its the simplest thing right?  :)