Logoff scripts

  • Thread starter Thread starter lbong
  • Start date Start date
L

lbong

Hi Group,

Is there a way in Group Policy for me to define different logoff
scripts for different user that logon to the same machine? What I am
trying to achieve is this:

When "User1" logoff, "User1.bat" is run. When "User2" logoff,
"User2.bat" is run.

Thanks for any help or pointers.
 
Logon and logoff scripts are defined on a per-user basis (unless you use
loopback processing mode), so you need not to worry about machine - as long
as the group policy with appropriate logon/logoff scripts affects the user
account.
 
Hi Group,

Is there a way in Group Policy for me to define different logoff
scripts for different user that logon to the same machine? What I am
trying to achieve is this:

When "User1" logoff, "User1.bat" is run. When "User2" logoff,
"User2.bat" is run.
Thanks for any help or pointers.

Hi.
Determine username in you .bat file and start other .bat file
like this

logoff.bat
IF %%USERNAME%%==user1 call user1.bat
IF %%USERNAME%%==user2 call user2.bat

With best regards. Alexey Yastrebov

P.S.
in command prompt IF /?
and look Windows Script Host is the best decision. imho
(www.microsoft.com/scripts)
 
Back
Top