Get-OSArchitectureWidth

Get-OSArchitectureWidth

Get-OSArchitectureWidth

Get the operating system architecture address width.

Syntax

Get-OSArchitectureWidth `
  [-Compare <Object>]

Description

This will return the system architecture address width (probably 32 or 64 bit). If you pass a comparison, it will return true or false instead of {32|64}.

Notes

When your installation script has to know what architecture it is run on, this simple function comes in handy.

Available as Get-OSArchitectureWidth in 0.9.10+. If you need compatibility with pre 0.9.10, please use the alias Get-ProcessorBits.

Aliases

Get-OSBitness Get-ProcessorBits

Inputs

None

Outputs

None

Parameters

Function Reference

📝 NOTE This documentation has been automatically generated from Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-OSArchitectureWidth -Full.

View the source for Get-OSArchitectureWidth