I am new to C# and one of my intentions in my program is to know a remote machine system architecture. I found this command:
System.Environment.Is64BitOperatingSystem
that essentially gets the value of the environment property, but this only on the local machine i am developing from.
Is there a way to run this commnad, or any other command remotely?
Or, I know how to do that in PowerShell, by querying with Get-WMIObject with -ComputerName Parameter that gives my the option the query WMI remotely. So maybe there another simple way to do that also in C#?
Thank you
UPDATE: I used that link: https://learn.microsoft.com/en-us/windows/desktop/wmisdk/connecting-to-wmi-remotely-with-c- what Alex gave me, and in the article I need to use the assembly:
Microsoft.Management.Infrastructure
But I just can't reference it, or find it in my computer... The microsoft article doesn't say anything about that assembly where I can find it.