MSP Programs & Scripts Code
Programs and PowerShell Scripts for MSP/RMM Admins
Brought to you by:
theitguys
#Requires -Version 3.0 Write-Output "I'm version 3.0 or above:" $PSVersionTable # There are other options such as manually checking the # version of PowerShell and performing other actions such # as inspecting the major version, e.g. if ($PSVersionTable.PSVersion.Major -gt 2) { Write-Output "Yay" } else { Write-Output "Boo" } # breaks version down (Get-Host).version