PowerShell Tips
in Blog
Useful PowerShell Tips
Objective
To document some useful PowerShell tips that I’ve come across.
Prerequisites
General Windows Operating System Knowledge
PowerShell version 5 or higher
Useful PowerShell Tips
Check if PowerShell is running in 32-bit or 64-bit process.
Method #1
- If output = True, PowerShell is running as a 64-bit Process
[System.Environment]::Is64BitProcess
Method #2
- If output = 8, PowerShell is running as a 64-bit Process
- If output = 4, PowerShell is running as a 32-bit Process
[intptr]::size
Check Powershell Version
$PSVersionTable
Summary
- Have a question?
- Find an error?
- Have a suggestion on how to improve this page?