I am very new to scripting. I would like to run different scripts at logon
for different users. Script "A" would run when user "A" logged on, script
"B" would run when user "B" logged on. Is this possible?

Thanks,

Re: Different scripts at logon by Ayush

Ayush
Wed Dec 13 06:57:26 CST 2006

Replied to [Mitch]s message :
> I am very new to scripting. I would like to run different scripts at logon
> for different users. Script "A" would run when user "A" logged on, script
> "B" would run when user "B" logged on. Is this possible?
>
> Thanks,


Yes, simple ....

There are Startup folders for each user. The folder is:
Documents and settings\UserName\Start Menu\Programs\Startup
where UserName is the name of user so if you put Script A in :
Documents and settings\User1\Start Menu\Programs\Startup
Script A will run when user 1 will log in

AND if you want to run a script when any user log in then put the script in :
Documents and settings\All users\Start Menu\Programs\Startup


--
Ayush [ Good :-) Luck ]
-------------
Search - www.Google.com | Wikipedia - http://en.wikipedia.org
Snip your long urls - http://snipurl.com/
-------------

Re: Different scripts at logon by Richard

Richard
Wed Dec 13 08:37:49 CST 2006

Mitch wrote:

>I am very new to scripting. I would like to run different scripts at logon
> for different users. Script "A" would run when user "A" logged on, script
> "B" would run when user "B" logged on. Is this possible?

If you have an Active Directory domain, you can assign the logon script on
the "Profile" tab of the user properties dialog in ADUC. See #5 in this
logon script FAQ:

http://www.rlmueller.net/LogonScriptFAQ.htm

--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net