Tag Archives: OS Architecture

PowerShell – Find OS architecture (32 bit or 64 bit) of local or remote machines Using Powershell

Method 1: Environment Variable PS:\>$ENV:PROCESSOR_ARCHITECTURE Method 2: Using Win32_OperatingSystem ps:\>$computername=’abcd’ ps:\>(Get-WmiObject Win32_OperatingSystem -computername $computername).OSArchitecture  Method 3: Using Win32_Processor ps:\>$computername=’abcd’ ps:\>Get-WmiObject -Class Win32_Processor -ComputerName $ComputerName| Select-Object AddressWidth Method 4:[IntPtr]::Size – Gets the size of this instance.  The value of this property is 4 in a … Continue reading

Posted in Uncategorized | Tagged , | 2 Comments