i use vbscript to connect to remote machines...so i dont know how to translate vbs code to c#. However, WMI classes are the same regardless of the language we use.
Here's what you should do:
I use ("WbemScripting.SWbemLocator").ConnectServer method (you must follow and specify the parameters of course e.g. username,password,etc.) plus the namespace (connect to e.g. "root\default") to connect to ANY remote machine and then perform queries or commands using specified class (properties and methods). Download CIM studio from microsoft.com to find the class you need.