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

Test-OSDCoreOperatingSystemCloudObject

Tests whether an OSDCore operating system object URL is reachable.

Property
Value

Module

OSD

Platform

WinPE (amd64 / arm64)

Description

Reads the Url property from the supplied operating system object, or from $global:OSDCoreOperatingSystemCloudObject when no object is supplied, and returns $true when a live TCP connection and HTTP HEAD request can reach it. Returns $false when the object is missing, the Url property is empty, or the URL test fails. HTTP and HTTPS are both tested for host-only web URLs so systems with an invalid date can still detect basic network reachability over HTTP. Specific absolute file URLs are tested exactly as supplied.

Syntax

Test-OSDCoreOperatingSystemCloudObject [[-OperatingSystemCloudObject] <PSObject>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

Parameters

Parameter
Type
Required
Description

-OperatingSystemCloudObject

PSObject

False

Operating system object containing a Url property to test.

Examples

Example

Test-OSDCoreOperatingSystemCloudObject
Tests the Url property on $global:OSDCoreOperatingSystemCloudObject.

Example

Last updated

Was this helpful?