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