Block-WinOS
Last updated
Was this helpful?
Blocks execution if the system is not running WinPE
Module
OSD
Platform
WinPE (amd64 / arm64)
Validates that the system is running in WinPE (Windows PE) environment. If not in WinPE, writes a warning and breaks execution unless the -Warn parameter is specified.
Block-WinOS [-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-WinOS
Halts execution if the system is not running WinPELast updated
Was this helpful?
Was this helpful?

