Discussion Locked

logon sripts

0 helpful
10 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am trying to create logon scripts to shared network folders. I have not done it before-
Can you help me setup a logon script to automate a mapping to a specific folder. That folder would have to be mapped to all network users who log in. If at all possible, would you offer some detailed instructions?

10 replies

by s2rock

The command you need to use is "net use"
For example to map drive f to a folder named home on a server named corp you would type net use f: \\corp\home. To understand the command better go to a dos prompt ant type net use /?

by highorbit

Logon script to map a network drive:

logon.bat:

@echo off

net use z: \\Server\Share
net use y: \\Server2\Share
etc

That will do it for all users who log onto the domain.

by highorbit

The following is just in case you don't know where to put them etc...

All you have to do is copy the logon.bat file to the netlogon directory of all domain controllers (%windir%\system32\repl\Export and Import).

It is advisable to start the replicator service if you have more than one DC otherwise they all have to be updated manually everytime you change the script.

Replication between servers can be set-up under Server Manager.

Each user account has to be told to use the logon script, select all domain users, then User and Properties, then Profile and add the logon script name.

Just in case :-)

by will shakespeare

I thought this was a W2000 Forum? There is no repl directory in W2000! The logon.bat file isn't handled the same way as replicated in NT 4.
Not looking for points here, as I can't rightly remember where it needs to be stored, but I thought I'd input to save this person trying to figure out where the Import and Export folders are...

This discussion is closed to new replies.