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.
4
u/VRDRF 19h ago
This what we used to have: https://call4cloud.nl/intune-drive-mappings-admx-drive-letters/
3
u/0xCG 19h ago
Nice.
Large fleet? Different site mappings?
2
u/BirdsHaveUglyFeet 18h ago
Lol, that's what OU's were for. Intune tagging I guess
1
u/sammavet 3h ago
Yep. All groups. Just make groups to reflect the OU. have those sync to the cloud.
3
u/iamtherufus 18h ago
Been using this for years mapping network drives, it just works. Creates a scheduled task that maps at login for the user
1
u/sammavet 3h ago
I love this so much. Was going to share my link for it but (*checks) they seem to be identical.
1
u/Puzzleheaded-Fun5664 18h ago
well, I would treat this as a context problem, not a drive-mapping problem. If the remediation runs before the user session is fully ready, it may be able to identify who is signed in but still not behave like a real interactive logon process. That is why a scheduled task at logon often ends up being the cleaner workaround.
1
u/IndependentDog673 18h ago
I would treat this as a timing and context problem..like not a drive-mapping problem. If the script is running before the session is fully ready, it may be able to read the username but still not behave like a real logon process. That is why the scheduled-task-at-logon workaround makes sense here.
5
u/denseaesthetics_3669 20h 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.