From LedHed's Wiki
Revision as of 00:20, 3 March 2007 by Ledhed (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Logon Scripts

The Down and Dirty: "Active Directory Computers & Users"
Click Properties on Object you want to edit the GPO
Click on User/Computer Configuration (depending on your needs)
Goto "Windows Settings" -> "Scripts"


The not so Down and Dirty: Open "Active Directory Computers & Users" Right Click -> Properties on the OU or Domain you want to add the Logon Script to.
Click the Group Policy Tab
Click "New" for a new Group Policy Object, or Select an existing object and click "Edit"
Expand: User Configuration -> Windows Settings -> Scripts (Logon/Logoff)
Double Click Logon in the Right Hand Pane
The "Logon Properties" Window Pops up.
Click the "Show Files" button. (Even if there are no files!)
Create or Copy/Paste your .bat file or VBScript into that directory.
Close the explorer window.
Now Click the Add button, and select the file you just created.
OK your way out.
Press [WIN]+[R] to bring up the run Dialog.
type this:

pgupdate /force

Thats it! (Users that are already logged in will have to re-logon for the script to take effect, A reboot or gpupdate /force may also be required on client computers)