Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista Tutorial - Logoff a local user

Reply
 
Old 03-20-2007   #1 (permalink)
Marco Shaw
Guest


 
 

Logoff a local user

Windows XP Pro

After 15 minutes of inactivity, I'd like to force a user to log off. I was
thinking that I could run a regular script to check for the screensaver
process (that would start after 15 minutes of inactivity).

Is there a way to cleanly logoff a user? This is a local account only (not
domain connected).

Now, unless there's a way for me to 'plug into' whatever kicks off the
screensaver, and have the script be run directly...

Marco



My System SpecsSystem Spec
Old 03-20-2007   #2 (permalink)
Gaurhoth
Guest


 
 

Re: Logoff a local user

Look for WinExit.SCR in the windows 2003 resource kit. It will cause a
logoff when the screen saver kicks in. However, you still have the issue of
forcing the user to "KEEP" the screen saver settings the way you put them.

Gaurhoth


"Marco Shaw" <marcoDOTshaw_@_gmailDOTcom> wrote in message
news:%23PYgORxaHHA.348@TK2MSFTNGP02.phx.gbl...
> Windows XP Pro
>
> After 15 minutes of inactivity, I'd like to force a user to log off. I
> was thinking that I could run a regular script to check for the
> screensaver process (that would start after 15 minutes of inactivity).
>
> Is there a way to cleanly logoff a user? This is a local account only
> (not domain connected).
>
> Now, unless there's a way for me to 'plug into' whatever kicks off the
> screensaver, and have the script be run directly...
>
> Marco
>


My System SpecsSystem Spec
Old 03-20-2007   #3 (permalink)
RichS
Guest


 
 

Re: Logoff a local user

Could you control that with a local security policy?

Does the user have admin rights?
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Gaurhoth" wrote:

> Look for WinExit.SCR in the windows 2003 resource kit. It will cause a
> logoff when the screen saver kicks in. However, you still have the issue of
> forcing the user to "KEEP" the screen saver settings the way you put them.
>
> Gaurhoth
>
>
> "Marco Shaw" <marcoDOTshaw_@_gmailDOTcom> wrote in message
> news:%23PYgORxaHHA.348@TK2MSFTNGP02.phx.gbl...
> > Windows XP Pro
> >
> > After 15 minutes of inactivity, I'd like to force a user to log off. I
> > was thinking that I could run a regular script to check for the
> > screensaver process (that would start after 15 minutes of inactivity).
> >
> > Is there a way to cleanly logoff a user? This is a local account only
> > (not domain connected).
> >
> > Now, unless there's a way for me to 'plug into' whatever kicks off the
> > screensaver, and have the script be run directly...
> >
> > Marco
> >

>
>

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Problem with WMI User Logoff VB Script
renaming Local user account and Changing "Full Name" of same Local VB Script
Random Memory Errors at Logoff (and ONLY Logoff) General Discussion
Re: Last Logon and Logoff for a specific user PowerShell
Force user logoff from Task Manager Vista performance & maintenance


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46