Logon Scripts

  • Thread starter Thread starter Robert Gamboa
  • Start date Start date
R

Robert Gamboa

How do Create logon scripts for windows 2000 user. Also
were do I put the script on the server.

Thank you
Rob
 
How do Create logon scripts for windows 2000 user. Also
were do I put the script on the server.

Key answer: Group Policy.

In Group Policy (easiest is to use Active Directory Users and
Computer/domain-right-click/properties/Group Policy/ADD NEW
policy. (The default domain policy is best left alone so if you do
something injudicious you can delete YOUR NEW policy)...

In Group Policy there are two sections-- Computer and User.
Under each are 3 items, the second Windows Settings has
Startup/Shutdown scripts for Computers and Logon/Logoff
Scripts for Users.

Visit there, and let it choose the location (which gets them into
the right place in SysVol) -- you can copy your old scripts or
just build them there.

You can also still use Logon scripts linked through the users'
accounts but that is mainly to support NT/9x users who cannot
receive "Group Policy".

On a single machine, there is also "Local Group Policy" (LGPO-
objects) -- similar settings for scripts.
 
1. Create a text file using notepad and save it as a .bat file (example:
login.bat)
2. Edit this bat file to make it perform a task when you log on.

Example:

net use k: \\servername\sharename
net use l: \\servername\sharename2

3. Save this file to the following location:

<%systemroot%>\sysvol\sysvol\yourdomain.com\scripts

4. Edit a user to use the new login script. You do this in AD Users &
Computers. Right-click a user and select properties. Click on the
"profile" tab and type in login.bat (or whatever you named your file) in the
Login Script box.

5. Have the user log off and test it.

Hope this helps!
 
Back
Top