Line 2: | Line 2: | ||
− | '''The Down and Dirty:''' | + | '''The Down and Dirty:'''<br> |
"Active Directory Computers & Users"<br> | "Active Directory Computers & Users"<br> | ||
Click Properties on Object you want to edit the GPO<br> | Click Properties on Object you want to edit the GPO<br> | ||
Line 9: | Line 9: | ||
− | '''The not so Down and Dirty:''' | + | '''The not so Down and Dirty:'''<br> |
Open "Active Directory Computers & Users" | Open "Active Directory Computers & Users" | ||
Right Click -> Properties on the OU or Domain you want to add the Logon Script to.<br> | Right Click -> Properties on the OU or Domain you want to add the Logon Script to.<br> |
Revision as of 00:20, 3 March 2007
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)