Real Geek Forums

Real Geek Forums (http://www.realgeek.com/forums/index.php)
-   Windows XP Configuration & Management (http://www.realgeek.com/forums/windows-xp-configuration-and-management-37/)
-   -   Running logoff script for local user (http://www.realgeek.com/forums/running-logoff-script-for-local-user-480506.html)

sgrigg 02-20-2009 04:00 PM

Running logoff script for local user
 
Running logon/logoff script for a domain user is easy through group policy.
I've figured out how to use the runonce key (set via Group Policy) to run a
logon script for a local user but can't figure out how to run a script when a
local user logs off. The local user is defined on most workstations and
always has the same name. It doesn't matter to me if the same script runs
for all users as long as it runs for the local users as well.

Thanks!

Klaus Jorgensen 02-20-2009 04:25 PM

Re: Running logoff script for local user
 
After serious thinking sgrigg wrote :
Quote:

> Running logon/logoff script for a domain user is easy through group policy.
> I've figured out how to use the runonce key (set via Group Policy) to run a
> logon script for a local user but can't figure out how to run a script when a
> local user logs off. The local user is defined on most workstations and
> always has the same name. It doesn't matter to me if the same script runs
> for all users as long as it runs for the local users as well.
Run gpedit.msc on a workstation as you do in AD for a domain user.

--
/klaus



sgrigg 02-20-2009 04:46 PM

Re: Running logoff script for local user
 
I should have mentioned that I am in a domain environment and want this
logoff script to affect all workstations. I'm not about to visit every
workstation and edit the local policy :)

"Klaus Jorgensen" wrote:
Quote:

> After serious thinking sgrigg wrote :
Quote:

> > Running logon/logoff script for a domain user is easy through group policy.
> > I've figured out how to use the runonce key (set via Group Policy) to run a
> > logon script for a local user but can't figure out how to run a script when a
> > local user logs off. The local user is defined on most workstations and
> > always has the same name. It doesn't matter to me if the same script runs
> > for all users as long as it runs for the local users as well.
>
> Run gpedit.msc on a workstation as you do in AD for a domain user.
>
> --
> /klaus
>
>
>

Klaus Jorgensen 02-20-2009 06:38 PM

Re: Running logoff script for local user
 
sgrigg laid this down on his screen :
Quote:

> I should have mentioned that I am in a domain environment and want this
> logoff script to affect all workstations. I'm not about to visit every
> workstation and edit the local policy :)
It's good exercise. :-)

Haven't seen any info other than using a utilily like RegShot and see
what gpedit.msc is doing to the registry. No definite answer, though.

--
/klaus




All times are GMT. The time now is 05:12 AM.

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Copyright © 2005 - 2007 RealGeek.com. All rights reserved.