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 > Vista Newsgroups > Vista General

Vista - how to force logoff when workstation is locked?

Reply
 
Old 04-20-2009   #1 (permalink)
dmm


 
 

how to force logoff when workstation is locked?

In Vista, my service runs continuously. At times, it becomes necessary for
my service to forcibly logoff the user when the PC has been locked by the
user. How can this be accomplished programmatically?

Thanks
dmm

My System SpecsSystem Spec
Old 04-20-2009   #2 (permalink)
D. Hafer


 
 

Re: how to force logoff when workstation is locked?

Try using the task manager, going to users, and selecting logoff.
"dmm" <dmm@xxxxxx> wrote in message
news:EF9D83EC-3274-42E0-A87E-70EB03D1E277@xxxxxx
Quote:

> In Vista, my service runs continuously. At times, it becomes necessary
> for
> my service to forcibly logoff the user when the PC has been locked by the
> user. How can this be accomplished programmatically?
>
> Thanks
> dmm
My System SpecsSystem Spec
Old 04-20-2009   #3 (permalink)
dmm


 
 

Re: how to force logoff when workstation is locked?

The force logoff must be done programmatically not via manual user
intervention.

Thanks
Dan

"D. Hafer" wrote:
Quote:

> Try using the task manager, going to users, and selecting logoff.
> "dmm" <dmm@xxxxxx> wrote in message
> news:EF9D83EC-3274-42E0-A87E-70EB03D1E277@xxxxxx
Quote:

> > In Vista, my service runs continuously. At times, it becomes necessary
> > for
> > my service to forcibly logoff the user when the PC has been locked by the
> > user. How can this be accomplished programmatically?
> >
> > Thanks
> > dmm
>
>
My System SpecsSystem Spec
Old 04-20-2009   #4 (permalink)
Richard G. Harper


 
 

Re: how to force logoff when workstation is locked?

I don't believe it's possible due to the codepath in use during a
locked-workstation session.

"dmm" <dmm@xxxxxx> wrote in message
news:EF9D83EC-3274-42E0-A87E-70EB03D1E277@xxxxxx
Quote:

> In Vista, my service runs continuously. At times, it becomes necessary
> for
> my service to forcibly logoff the user when the PC has been locked by the
> user. How can this be accomplished programmatically?
>
> Thanks
> dmm
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
RE: force logoff after time limit PowerShell
Random Memory Errors at Logoff (and ONLY Logoff) General Discussion
Possible Fix: Microsoft Force Feedback 2 Joystick and the self center force disabling Vista hardware & devices
Can't force users to logoff Vista account administration
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