Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Forcing remote users to log off.

by meetraz (Hermit)
on Aug 02, 2004 at 18:11 UTC ( [id://379352]=note: print w/replies, xml ) Need Help??


in reply to Forcing remote users to log off.

Since Windows XP logons are treated as terminal sessions, you can use the terminal services API to log users off. Something like this:

use strict; use Win32::Lanman; my $target = 'client01'; Win32::Lanman::WTSLogoffSession($target, 0); # See also: # WTSEnumerateSessions() # WTSQuerySessionInformation() # WTSDisconnectSession()

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://379352]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-04-18 12:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found