Block-PowerShellVersionLt5
Last updated
Was this helpful?
Blocks execution if PowerShell version is less than 5
Module
OSD
Platform
WinPE (amd64 / arm64)
Validates that PowerShell version 5 or greater is running. If the version is less than 5, writes a warning and breaks execution unless the -Warn parameter is specified.
Block-PowerShellVersionLt5 [-Warn] [-Pause] [-ProgressAction <ActionPreference>] [<CommonParameters>]-Warn
SwitchParameter
False
Shows a warning but continues execution instead of breaking
-Pause
SwitchParameter
False
Pauses and displays a message before continuing execution
Block-PowerShellVersionLt5
Halts execution if PowerShell version is less than 5Last updated
Was this helpful?
Was this helpful?

