Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Map a network drive based on the user group

$
0
0

Dear everyone,

 

I know there is a tone of topics about that but i need a script a bit specific.

I need in Powershell to map a network drive based on the group user.

The particularity is : There is not a predifined groupe like "Finance". There is a group for the "CLIENT" that could be "group_client_0001" and this group have 2 members "user_0001" and "user_0002". Those users must have a drive mapped with :

 for user 1 : Z:\group_client_0001\user_0001

 for user 2 : Z:\group_client_0001\user_0002

The next group could be "group_client_0002" and this group could have 1 member "user_0003"

The user will have a drive mapped :

 for user 3 : Z:\group_client_0002\user_0003

 

any ideas ?


Viewing all articles
Browse latest Browse all 6937

Latest Images

Trending Articles



Latest Images