Forum Discussion
Rasul_RA1
Apr 22, 2024Copper Contributor
Map Home-Directory attribute UNC path for locally connected azure-ad joined shared devices.
We have an on-premises Active Directory (AD) environment connected to Azure AD via AD Connect. We’ve successfully joined our devices to Azure AD using Azure AD Join (MEJ) through Autopilot. We also, ...
Rasul_RA1
Copper Contributor
Thank you, Nick, for your response.
We have several servers for Home Drives, and we’ve named them based on the username and the group they are assigned to. For instance, group members of X need access to \\Server01\%USERNAME%, while members of Y require a mapped drive to \\Server02\%USERNAME%, and so on.
I’ve used a method to map two other drives that need to be available for all users. While it worked with some customizations, unfortunately, it didn’t work with %USERNAME%. I even tried mapping the Home Drive for a test user using this method, and it worked for that specific user, but it doesn’t seem to work consistently for various users, and various shared servers.
https://github.com/nicolonsky/IntuneDriveMapping
We have several servers for Home Drives, and we’ve named them based on the username and the group they are assigned to. For instance, group members of X need access to \\Server01\%USERNAME%, while members of Y require a mapped drive to \\Server02\%USERNAME%, and so on.
I’ve used a method to map two other drives that need to be available for all users. While it worked with some customizations, unfortunately, it didn’t work with %USERNAME%. I even tried mapping the Home Drive for a test user using this method, and it worked for that specific user, but it doesn’t seem to work consistently for various users, and various shared servers.
https://github.com/nicolonsky/IntuneDriveMapping
NicklasOlsen
May 01, 2024Iron Contributor
Hi Gordon,
Hm, I think I understand the question; otherwise, please correct me 😊.
You can create a configuration profile for each drive and assign it to specific users.
Otherwise, you have the option to utilize this tool and use the security filtering. However, this creates a scheduled task on the device.
https://intunedrivemapping.azurewebsites.net/
Hm, I think I understand the question; otherwise, please correct me 😊.
You can create a configuration profile for each drive and assign it to specific users.
Otherwise, you have the option to utilize this tool and use the security filtering. However, this creates a scheduled task on the device.
https://intunedrivemapping.azurewebsites.net/
- Rasul_RA1May 01, 2024Copper ContributorNick,
We're using this method and it's working good for non-variable address (for example "\\sharedserver\publicfolder", or "\\server02\JohnDoe"), but when I tried to address any user who logs in, it doesn't create the home drive (Personal Share Drive) for that specific user. I try to address multiple file server following %USERNAME% and it didn't work (For example I used "\\server02\%USERNAME%", and it didn't work).- NicklasOlsenMay 02, 2024Iron ContributorAh, now I understand.
The home folder would have to exist, before the drive mapping can map it. If it doesn't exist, it can't map the homefolder unfortunately.- Rasul_RA1May 02, 2024Copper Contributor
The paths already exist on our file servers and are accessible to each user based on their username. We need to devise a method to link the existing folders to the respective usernames (%username%) so that it becomes their Home Drive. This Home Drive will serve as their profile on any device they log into. I think, I’ll likely need to write a script that get the HomeDirectory attribute on-premises and map that path folders for each user.