Re: logon/logoff scripts and runas
- From: "Bruce Sanderson" <Bruce.Sanderson@xxxxxxxxx>
- Date: Mon, 27 Jun 2005 13:58:11 -0700
Logon scripts run as part of the "Windows Session" setup process that, among
other things, loads the user "profile" and provides the Desktop.
Applications that you run, whether using the "Run As" or not, all run in the
Windows Session. The only way to launch a Windows Session is to logon
locally at a computer or via Terminal Services (Remote Desktop). The runas
command (or the Run As conext menu item) merely specifies a different
security context for the application inside the Windows Session.
--
Bruce Sanderson MVP
It's perfectly useless to know the right answer to the wrong question.
"Lars Nyman" <larsnyman@xxxxxxxxxxxxx> wrote in message
news:uuu2oaFeFHA.3808@xxxxxxxxxxxxxxxxxxxxxxx
> Windows Server 2003.
> I have a GPO that specifies a logon script in User Configuration/Windows
> Setting/Scripts (Logon/Logoff)/Logon (and similarly a logoff script). The
> GPO is linked to a OU that contains a user mydomain\userA.
>
> When logging on as mydomain\userA the logon script is executed and when
> logging off the logoff script is executed as expected.
>
> However, if I am logged on as another user, mydomain\userB and use "runas
> /user:mydomain\userA cmd.exe"
> to start a command prompt as userA then the logon script for userA is not
> executed (and the logoff script for userA is not executed when the command
> prompt is exit-ed). Is this the expected behavior? If so, is there any
> documentation and/or helpfile that describes the differences between a
> "full" logon from ctrl-alt-del and a "logon" using runas.
>
.
- Follow-Ups:
- Re: logon/logoff scripts and runas
- From: Lars Nyman
- Re: logon/logoff scripts and runas
- References:
- logon/logoff scripts and runas
- From: Lars Nyman
- logon/logoff scripts and runas
- Prev by Date: Re: Windows Firewall settings. The same policy for XP SP2 and Win 2003!?!?!
- Next by Date: Re: gp not working on clone machine
- Previous by thread: Re: logon/logoff scripts and runas
- Next by thread: Re: logon/logoff scripts and runas
- Index(es):
Relevant Pages
|