Test-OSDCoreOperatingSystemCloudObject
Tests whether an OSDCore operating system object URL is reachable.
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
-OperatingSystemCloudObject
PSObject
False
Operating system object containing a Url property to test.
Examples
Example
Test-OSDCoreOperatingSystemCloudObject
Tests the Url property on $global:OSDCoreOperatingSystemCloudObject.Example
Related
Last updated
Was this helpful?

