From LedHed's Wiki
Jump to: navigation, search
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Logon Scripts ==
 
  
 +
== Desktop Logon Scripts ==
 +
Nothing Here Yet!
  
'''The Down and Dirty:'''
+
 
 +
== Domain Logon/Startup Scripts ==
 +
 
 +
 
 +
'''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 14:
  
  
'''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>
Line 15: Line 20:
 
Click "New" for a new Group Policy Object, or Select an existing object and click "Edit"<br>
 
Click "New" for a new Group Policy Object, or Select an existing object and click "Edit"<br>
 
Expand:  User Configuration -> Windows Settings -> Scripts (Logon/Logoff)<br>
 
Expand:  User Configuration -> Windows Settings -> Scripts (Logon/Logoff)<br>
Double Click Logon in the Right Hand Pane<br>
+
or<br>
 +
Expand: Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown)<br>
 +
Double Click the corresponding script type in the Right Hand Pane<br>
 
The "Logon Properties" Window Pops up.<br>
 
The "Logon Properties" Window Pops up.<br>
 
Click the "Show Files" button.  (Even if there are no files!)<br>
 
Click the "Show Files" button.  (Even if there are no files!)<br>
Line 24: Line 31:
 
Press [WIN]+[R] to bring up the run Dialog.<br>
 
Press [WIN]+[R] to bring up the run Dialog.<br>
 
type this:<br>
 
type this:<br>
  pgupdate /force
+
  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)<br>
 
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)<br>

Latest revision as of 22:50, 13 October 2010

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)