logon/logoff scripts and runas



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.

.



Relevant Pages

  • Terminal users default printer not staying desfault.
    ... I use terminial servers with network printers. ... I created the logon and logoff script below: ... IN 2008 I put the logon script in the Startup so it runs and gets the ... the %clientname% dissappears... ...
    (microsoft.public.windows.server.scripting)
  • RE: Terminal users default printer not staying desfault.
    ... Logon Script: ... create a reg file to be imported at next logon. ... REM Call the batch file that was created during logon. ... I created the logon and logoff script below: ...
    (microsoft.public.windows.server.scripting)
  • Slow Logoff
    ... I am calling a logoff script using group policy and users experience a 600 ... can no longer connect the server the logon script is on and then times out ...
    (microsoft.public.windowsxp.general)
  • Re: IE7 Feeds and roaming profile
    ... Adding this line on logon script: ... xcopy "%HOMESHARE%\Feeds" "%USERPROFILE%\Local Settings\Application ... Adding this line on logoff script: ... Hope it will be useful for you, this way is not really clean but that's the ...
    (microsoft.public.windows.group_policy)
  • Re: Disabling a GPO logon Script
    ... exactly you have defined your current logon script, in which GPO, ... What loopback processing does is that it takes the User ... the Terminal Server), in stead of the normal processing (taking the ...
    (microsoft.public.windows.terminal_services)

Loading