Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
hey. I have a couple drives I want to map whenever the user logs on. I know I can do this via batch file, but is there a way to do this through the group policy?
Also, if i end up having to do it by batch file, is there a limit to the number of letters the name can have? If i try to map a share called "shared Folder" in dos, it doesn't work. If i rename it to "shared", then i am able to map it in dos. any ideas?

Hi Jonh, you can do it through GPO!!
Just make the gpo, go to "User Configuration" > "Scripts (logon-logoff)" > Logon > Properties, than will show a window that you will can add an script to the users. There are button "Show Files" you can click there and create (or copy your batch file that you said ).
Than just link your GPO to OU that you want!
Ready!I thing better you use _ (underscore) instead of( ) space, because the DOS will not support your batch mapping.
See you!
Milton Matos

In regards to the number of letters the name can have, lets assume the folder is called "Day Schedule", and you wanted to map the S: drive to it, you would map it in MS-DOS as follows:
net use S: \\servername\daysch~1
Notice two things:
1. the two words are put together
2. the ~ and 1 are the seventh and eighth charactersSince DOS recognizes single words no more than eight characters long, appending ~1 as the seventh and eighth characters will help DOS understand and complete the name.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |