From LedHed's Wiki
Revision as of 22:50, 13 October 2010 by Ledhed (Talk | contribs)

Jump to: navigation, search

Desktop Logon Scripts

Nothing Here Yet!


Domain Logon/Startup 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)
or
Expand: Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown)
Double Click the corresponding script type 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:

gpupdate /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)