Running logoff script for local user

Posted: 02-20-2009, 04:00 PM
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!

Running logoff script for local user


Responses to "Running logoff script for local user"

Klaus Jorgensen
Guest
Posts: n/a
 
Re: Running logoff script for local user
Posted: 02-20-2009, 04:25 PM
After serious thinking sgrigg wrote :
> 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
Guest
Posts: n/a
 
Re: Running logoff script for local user
Posted: 02-20-2009, 04:46 PM
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:
> After serious thinking sgrigg wrote :
> > 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
Guest
Posts: n/a
 
Re: Running logoff script for local user
Posted: 02-20-2009, 06:38 PM
sgrigg laid this down on his screen :
> 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


 
LinkBack Thread Tools Display Modes
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Similar Threads
Thread Thread Starter Forum Replies Last Post
Add Domain user to Local Group via vb script Jason Windows XP Configuration & Management 5 09-05-2004 09:06 PM
Local user logon script does not run sms Windows XP New Users 4 08-01-2004 05:46 PM
Local user logon script does not run. sms Windows XP New Users 1 07-29-2004 04:12 PM
Local login after remote logoff Brian Windows XP Work Remotely 0 09-08-2003 10:32 PM
Creating a Logon Script for a local user Neil Windows XP New Users 0 07-15-2003 07:47 PM