Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Latest commit

 

History

History
51 lines (28 loc) · 1.42 KB

HelpersGetOSArchitectureWidth.md

File metadata and controls

51 lines (28 loc) · 1.42 KB

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|HelpersReference]]

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