I have windows 2008 domain environment and a file server. I have requirement of mapping HOme drive and department drives using logon script, How I can automate this.
I have folder structure as below:
I have security group like accounts, HR, purchase and users in it.
When a user "John" from HR department logs in, he must me mapped with
H:\ = \\fileserver\home\john
Z:\ = \\fileserver\HR
When a user "Mary" from accounts department logs in, she must me mapped with
H:\ = \\fileserver\home\Mary
Z:\ = \\fileserver\accounts
How I can do this using any script.