nicolonsky / IntuneDriveMapping

Generate PowerShell scripts to map network drives on Intune managed Windows 10 devices
https://intunedrivemapping.azurewebsites.net/
MIT License
148 stars 17 forks source link

Multiple Security Group #41

Open jeffersongarcia-stemcell opened 2 years ago

jeffersongarcia-stemcell commented 2 years ago

Hi, Some of the drive mapping we are trying to import are having multiple security group in their filtering, is there a way we can assign a drive mapping to multiple security groups?

mikew-gnet commented 2 years ago

Use Nested Groups

tedztar commented 1 year ago

Use Nested Groups

That would work but can be quite messy. I have the same question and dont want to used nested groups as it can be a nightmare to keep track of.

I havent personally tried yet but am going to see how it operates when you add multiple enteries one for each security group.

HobbitHardcase commented 1 year ago

@tedztar how did it go?

tedztar commented 1 year ago

@tedztar how did it go?

It works, so if you have a single map that you want to to go to multiple groups, you would add an entry per group. Makes the code long but works. Only thing to note: The last entry always takes priority. So if a user is part of multiple groups that are maping to the same drive letter, the last one will take priority.