PDA

View Full Version : mapped drive script


sharkey
June 19th, 2007, 11:05 PM
Hi all

I am managing a small tcpip network of a server (win xp server edition) and 8 workstations (xp pro), I am just reinstalling XP on each desktop and find that, after install I have to log on as each person and then map the drives (5) for all the applications we use with server stored data (sage etc).

The question is, can I create a script or something so that when I create a mapped drive ,it is applicable to ALL users who log on.

I have the server map a drive automaticaly to each users staff folder, but it seems to only alow one mapped srive per person.

Hope someone can help

Archangel122184
June 20th, 2007, 01:54 PM
If the server is running a domain, then you can add a logon batch file to their login.

sample.bat
net use x: /delete
net use x: \\server\share

That code can be repeated for any number of shares as long as the drive letter isn't in use. I personally add in the /delete line to guarantee that the script doesn't stall on a share that already has been mapped.

If you aren't using a domain, you can simply add the script to
\Documents and Settings\All Users\Start Menu\Programs\Startup
And every user will run it automatically when they log on.

sharkey
June 20th, 2007, 05:18 PM
Hi Thanks for that,

Where would Ifind the location to add this batch file?

Regards
Chris

Archangel122184
June 20th, 2007, 06:43 PM
Depends on the domain, most of them will call it the "logon script"

sharkey
July 13th, 2007, 02:11 PM
now working fine

Thanks to you all