Mapping a drive to individual user’s computers in a domain
can be done in two ways:
1.
Using a logon script
2.
Using group policy
1. Using a logon script
-
Assuming a shared folder exist and individual
users folder exist inside with the right permissions given ( please refer to my
previous blog)
-
Write a script in a notepad with the following
content net use s:\\192.168.2.8\UserData\%username% and save it with a bat extension
-
Save as the script to C:\Windows\SYSVOL\sysvol\domainname.local\scripts
The script basically maps a drives referring directly to the
user individual folder and its usually persistent (mapped at logon)
2. Using group policy preference
-
Open group policy management and right click
group policy objects then select new
-
Give it a name that is easy to understand
-
Right click the policy and select edit
-
Expand user configuration-windows setting –
drive maps
-
- Right click
map drive – click new – mapped drive then under action select create
- - Under location paste the path and change the
label to a drive letter
- - Under show\hide drives select show this drive
then on the right select show all drives
-
Click apply then ok.
- - Go to the organizational unit that you want to
apply right click link an existing select the GPO to apply the policy