Logon and Logoff Scripts
When the user logs on to the domain you can specify to run programs or open last used network drives. You can execute such tasks using scripts. You can assign log on scripts to execute tasks when the user logs on to the domain. You can also use లోగోఫ్ఫ్ scripts to execute tasks when the user logs off from the domain.
To Assign Logon Scripts:
1. Open Group Policy Object Editor console. The Group Policy Object Editor Console appears.
2. Expand Windows Settings under User Configuration.
3. Click Scripts (Logon/Logoff). Windows Server 2003 lists the Logon and Logoff Scripts.
4. Double-click Logon. The Logon Properties dialog box appears.
The different options on the Logon Properties dialog box are:
> Up - Moves the script above the selected script
> Down - Move the script below the selected script
> Add - Creates a new logon script
> Edit - Modifies the logon script
> Remove - Deletes the logon script
> Show Files - Displays the scripts
5. Click Add. The Add a Script dialog box appears.
The different options on the Add a Script dialog box are:
> Script Name - Specifies a name for the script
> Browse - Displays the Netlogon folder to add scripts
> Script Parameters - Specifies the conditions for the script
6. Enter the name for the script in the Script Name text box.
7. Enter the parameters for the script in the Script Parameters text box.
8. Click OK to close the Add a Script dialog box.
9. Click Apply.
When the user logons on to the domain on the network, Windows Server 2003 executes the script and displays the appropriate results. Similarly, you can add a logoff script for a user on the domain.
To add a logoff script:
1. Open Group Policy Object Editor Console. The Group Policy Object Editor Console appears.
2. Expand Windows Settings under User Configuration.
3. Click Scripts (LogonlLogoff). Windows Server 2003 lists the Logon and Logoff Scripts.
4. Double-click Log off. The Log off Properties dialog box appears.
5.Click Add. The Add a Script dialog box appears.
6.Enter the name for the script in the Script Name text box.
7.Enter the parameters for the script in the Script Parameters text box.
8.Click OK to close the Add a Script dialog box.
9.Click Apply.

0 comments:
Post a Comment