For the complete documentation index, see llms.txt. This page is also available as Markdown.

Block-NoInternet

Blocks execution if internet connectivity is not available

Property
Value

Module

OSD

Platform

WinPE (amd64 / arm64)

Description

Validates internet connectivity by testing connections to multiple well-known URLs. If connectivity cannot be established, writes a warning and breaks execution unless the -Warn parameter is specified.

Syntax

Block-NoInternet [-Warn] [-Pause] [-ProgressAction <ActionPreference>] [<CommonParameters>]

Parameters

Parameter
Type
Required
Description

-Warn

SwitchParameter

False

Shows a warning but continues execution instead of breaking

-Pause

SwitchParameter

False

Pauses and displays a message before continuing execution

Examples

Example

Block-NoInternet
Halts execution if internet connectivity is not available

Last updated

Was this helpful?