Adding Logon Script For Active Directory Users

Published May 18, 2009 by Siva

Logon scripts can be useful tools for configuring desktop environments for users. Some of the things such scripts can be used for include mapping network drives, connecting to shared printers, gathering system information, synchronizing system clocks, and so on. In fact, just about anything you can do from the command-line can be done using a logon script.

Step1:
Go to the following location

%systemroot%\sysvol\sysvol\<domain_DNS_name>\scripts\logon.bat

@Echo On
ECHO    *************************************************************************
EchO    *                                    *
ECHO    *  Please wait while Computer and User Settings are getting applied.    *
ECHO    *                   This will take approx 5 Sec                *
ECHO    *            Thank you for your patience                *
ECHO    *    Script Written by sivakumar.e@gmail.com                *
ECHO    *                                    *
ECHO    *************************************************************************
ECHO
REM —————————————————————————–

Net Use H: \\Server<ip>\<ShareFolderName>

Exit

Step 2:

Goto Active Directory Users & Computers from Administrative tools

Select the user properties ->Select profile tab –> loginscript -> give ur script name here logon.bat.

It Should Work Now…

For further clarification mail me..

Have a Nice Day..

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: