|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to kill a terminal server session (VB.NET)Hi,
Is there a way to kill a Terminal Server session from vb.net? I have to constantlly access our servers to reset ureser that get hung. I would like to have a web interfave that I can access via my PDA/Phone. It dose not have to be a wab page that does this. I could write to a queque that is read by a windows servrice on the TS server and then reset the user. Thanks. George. You would probably be using the functions in wtsapi32.dll. Terminal services
can also be accessed through WMI http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/terminal_services_wmi_provider_classes.asp but I am not sure if all of the functionality is exported. Cheers, Greg Young MVP - C# Show quoteHide quote "George Lake" <g@lake.com> wrote in message news:OptjVy2cGHA.4108@TK2MSFTNGP03.phx.gbl... > Hi, > Is there a way to kill a Terminal Server session from vb.net? > I have to constantlly access our servers to reset ureser that get hung. I > would like to have a web interfave that I can access via my PDA/Phone. It > dose not have to be a wab page that does this. I could write to a queque > that is read by a windows servrice on the TS server and then reset the > user. > > Thanks. > George. > > > pinvoke.net has some good info under wtsapi32 including examples of getting
sessions WTSEnumerateSessions http://www.pinvoke.net/default.aspx/wtsapi32.WTSEnumerateSessions, getting session info WTSQuerySessionInformation http://www.pinvoke.net/default.aspx/wtsapi32.WTSQuerySessionInformation, and logging off a session WTSLogOffSession http://www.pinvoke.net/default.aspx/wtsapi32.WTSEnumerateSessions Cheers, Greg Young MVP - C# Show quoteHide quote "Greg Young" <DruckDruckGo***@hotmail.com> wrote in message news:uaRf1R4cGHA.4900@TK2MSFTNGP02.phx.gbl... > You would probably be using the functions in wtsapi32.dll. Terminal > services can also be accessed through WMI > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/termserv/termserv/terminal_services_wmi_provider_classes.asp > but I am not sure if all of the functionality is exported. > > Cheers, > > Greg Young > MVP - C# > "George Lake" <g@lake.com> wrote in message > news:OptjVy2cGHA.4108@TK2MSFTNGP03.phx.gbl... >> Hi, >> Is there a way to kill a Terminal Server session from vb.net? >> I have to constantlly access our servers to reset ureser that get hung. I >> would like to have a web interfave that I can access via my PDA/Phone. It >> dose not have to be a wab page that does this. I could write to a queque >> that is read by a windows servrice on the TS server and then reset the >> user. >> >> Thanks. >> George. >> >> >> > >
How to disable the numericupdown event firing?
Mailmerge Automation Problems VB Form: Controlbox = False byte array size for read or write of filestream Basic Database Questions How do I embed a text file in my exe? mutiple tables in dataset and the dataadapter fill statement problem with code for dataset with mutilple tables Using VSS and VS.NET 2003 How to interrupt a running program |
|||||||||||||||||||||||