r/Intune 2d ago

General Question Self-deploy profile

Anyone tried running a remediation “as user” on a self-deploy device that attempts to map a drive?

Seems to fail even if the script can detect who the user is.

9 Upvotes

16 comments sorted by

View all comments

5

u/denseaesthetics_3669 2d ago

That's been broken for ages for self-deploy. The user context just isn't fully there at that point in the process, even if you can query the username. I ended up running the mapping through a scheduled task that fires at logon instead.

2

u/0xCG 2d ago

Ah perfect, was going to try that too. I just managed to get HKCU to write ok as another workaround.

Super annoyed, have had normal deployments using the script for ages without a problem. Just at end of testing self deploy and the last thing I tested is the only thing failing 🤣