This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
networking:windows:logon_script [2012/05/12 13:28] gcooper |
networking:windows:logon_script [2013/12/15 12:15] (current) gcooper |
||
---|---|---|---|
Line 1: | Line 1: | ||
====== Login Scripts ====== | ====== Login Scripts ====== | ||
+ | |||
+ | See also **[[networking: | ||
http:// | http:// | ||
Line 28: | Line 30: | ||
- Create or edit an existing Group Policy Object (GPO) | - Create or edit an existing Group Policy Object (GPO) | ||
- Right-click the GPO -> Edit | - Right-click the GPO -> Edit | ||
+ | |||
+ | **User Configuration -> Policies -> Windows Settings -> Scripts -> Logon -> Properties -> Add** | ||
**User Configuration -> Policies -> Windows Settings -> Scripts -> Logon -> Properties -> Show Files** | **User Configuration -> Policies -> Windows Settings -> Scripts -> Logon -> Properties -> Show Files** | ||
Line 52: | Line 56: | ||
http:// | http:// | ||
- | |||
- | ===== Modular Logon Script ===== | ||
- | |||
- | {{ : | ||
- | |||
- | Script: http:// | ||
- | |||
- | Howto: http:// | ||
- | |||
- | ==== Howto ==== | ||
- | |||
- | - Download and copy the logon.vbs file to the the appropriate folder on the domain controller where the script will be run. | ||
- | - Windows NT method | ||
- | - Group Policy method | ||
- | - Create two additional folders in the same directory called **' | ||
- | - Create a configuration file in the **' | ||
- | - Using either the Windows NT method or the Group Policy method, call the login script specifying the config file as an argument: '' | ||
- | - Use the detailed log files generated to troubleshoot and verify script execution. | ||
- | |||
- | === Sample global.conf === | ||
- | |||
- | < | ||
- | < | ||
- | meta=1 | ||
- | drives=3 | ||
- | printers=2 | ||
- | processes=4 | ||
- | include=5 | ||
- | </ | ||
- | |||
- | < | ||
- | description=For all users | ||
- | created=02/ | ||
- | author=Gene Cooper | ||
- | </ | ||
- | |||
- | < | ||
- | m: | ||
- | p: | ||
- | t: | ||
- | rem z: | ||
- | </ | ||
- | |||
- | < | ||
- | \\WIN2008R2-PDC\pdfcreator; | ||
- | rem \\server\hpprinter|group: | ||
- | rem \\server\colorprinter|-group: | ||
- | rem \\server\faxprinter|ip: | ||
- | </ | ||
- | |||
- | < | ||
- | rem c: | ||
- | </ | ||
- | |||
- | < | ||
- | rem File1.inc | ||
- | rem File2.inc|computerOU: | ||
- | rem File3.inc|group: | ||
- | </ | ||
- | </ | ||
- | |||
- | ==== Troubleshooting ==== | ||
- | |||
- | **Start -> Run -> %temp%** | ||
- | |||
- | * Look for logon_< | ||
- | * If you don’t see the logfile here, then you know that the script did NOT run. | ||
===== Sample Logon Scripts ===== | ===== Sample Logon Scripts ===== |