Hello
I need some help, about the windows users.
There's some way to get a list of all logged in users or all users in windows xp?
And if exists, can i logoff one of them by code?
Printable View
Hello
I need some help, about the windows users.
There's some way to get a list of all logged in users or all users in windows xp?
And if exists, can i logoff one of them by code?
For the First One : Refer this one
Thanks
But after knowing the names i still can't close the account...
I read somewhere that i can get the account by using WMI (WIn32_UserAccount\Win32_Account)
I can use the Logoff.exe to close the session, but i need the ID of the session that i want to close, to use it. Any one knows where can i get that ID?
The ID that i'm talking about is in the taskmanager, the tab Users.
Thanks
I dont know u can able to logoff a remote user. Read this one
Yes i can, tested, the "only" thing i need is the ID of the session.
I found some info how to get the ID's. Using the WTSEnumerateSessions....
I'll see if i can do something with this