Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Logoff a local user

Closed Thread
 
Thread Tools Display Modes
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


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
>


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

>
>

Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Last Logon and Logoff for a specific user Richard Mueller [MVP] PowerShell 0 07-29-2008 03:07 PM
Remote Desktop "administartor forced logoff of the current user" Tws101 Vista networking & sharing 2 06-02-2007 05:31 PM
Force user logoff from Task Manager SpaceJaguar Vista performance & maintenance 0 04-12-2007 04:50 AM
Warnings "user profile service" each shutdown or logoff Faelan Vista General 0 04-03-2007 01:49 AM
Disable "Switch User" at logoff Sam Crawford Vista General 0 09-16-2006 12:07 AM








Vistax64.com 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 2005-2008

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 47 48 49 50