Logoff scripts

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.
 
D

Dmitry Korolyov

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.
 
A

Alexey Yastrebov

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)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top