Powershell – Get OS architecture remotely via PowerShell

powershellremote-accesswindows-server-2008

Does anybody know how to grab OS architecture remotely from multiple Windows hosts via PowerShell?

Best Answer

get-wmiobject win32_operatingsystem -computer $_ | select-object OSArchitecture

You'll pipeline the list of computer names into this command so that $_ is interpreted as each computer in your list.


Edit: After doing some digging, it appears that this will work on both 2003 and 2008.

get-wmiobject win32_computersystem -computer $_ | select-object systemtype