Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disconnecting User Sessions

Status
Not open for further replies.

LeeSalter

Technical User
Nov 1, 2001
20
GB
Does anybody know of a way to programmatically disconnect a user session from an NT server using vb6(or API)?

When a user clicks on "Close all programs and logon as a different user", it does not always disconnect the session from the authenticating server.

My application relies upon accurately reflecting whether or not a user is logged on (using NetSessionEnum), but when interrogating the server, thinks that a user is still logged on when they are not.

I need another command button to call a script that replicates the disconnect user button found in NT Server Manager. Any help greatly appreciated.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top