Private/WebConnection.ps1
function Test-MyDellBiosWebConnection { [CmdletBinding()] param () $GetMyDellBios = Get-MyDellBios if ($GetMyDellBios) { Test-WebConnection -Uri $GetMyDellBios.Url } else { Return $false } } function Test-MyDellDriverCabWebConnection { [CmdletBinding()] param () $GetMyDellDriverCab = Get-MyDellDriverCab if ($GetMyDellDriverCab) { Test-WebConnection -Uri $GetMyDellDriverCab.DriverUrl } else { Return $false } } function Test-WebConnectionMsUpCat { [CmdletBinding()] param () if (Test-WebConnection -Uri 'https://www.catalog.update.microsoft.com/Home.aspx') { Return $true } else { Return $false } } |