How to access WinRM in C#
问题 I'd like to create a small application that can collect system information (Win32_blablabla) using WinRM as opposed to WMI. How can i do that from C#? The main goal is to use WS-Man (WinRm) as opposed to DCOM (WMI). 回答1: I guess the easiest way would be to use WSMAN automation. Reference wsmauto.dll from windwos\system32 in your project: then, code below should work for you. API description is here: msdn: WinRM C++ API IWSMan wsman = new WSManClass(); IWSManConnectionOptions options =