< Back

Test-CPowerShellIs64Bit

Sun Jan 12, 2020 11:30 pm

NAME Test-CPowerShellIs64Bit



SYNOPSIS

Tests if the current PowerShell process is 64-bit/x64.





SYNTAX

Test-CPowerShellIs64Bit [<CommonParameters>]





DESCRIPTION

Returns `True` if the currently executing PowerShell process is 64-bit/x64, `False` if it is 32-bit/x86.





PARAMETERS

<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

System.Boolean.





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Test-CPowerShellIs64Bit



Returns `True` if PowerShell is 64-bit/x64, `False` if it is 32-bit/x86.











RELATED LINKS

http://msdn.microsoft.com/en-us/library ... ocess.aspx