I understand that it is possible to check the state of a computer using wtsapi32.dll using c#. but is it possible to do that using powershell?
Asked
Active
Viewed 1,965 times
1
-
1http://gallery.technet.microsoft.com/scriptcenter/Get-Remote-Logon-Status-d8c2318a – CB. Jul 14 '14 at 12:00
-
2You can use exactly the same C# code, load it via `Add-Type` and use the resulting class from PowerShell, if that suffices. – Joey Jul 14 '14 at 12:00
-
Or the available PowerShell methods from http://gallery.technet.microsoft.com/scriptcenter/0e43993a-895a-4afe-a2b2-045a5146048a – dwarfsoft Jul 14 '14 at 12:43
-
Thank you very much. You have been very helpful – Falah Abu Hassan Jul 16 '14 at 21:59