Update Test-Network.ps1

pull/690/head
Andrzej Demski 2024-09-04 22:28:02 +02:00 committed by GitHub
parent f7e6edc085
commit 536a74d88d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ function Test-Network {
While ($timeout -lt 1800) { While ($timeout -lt 1800) {
try { try {
$ncsiResponse = Invoke-WebRequest -Uri "http://$($ncsiHost)/$($ncsiPath)" -UseBasicParsing -UserAgent ([Microsoft.PowerShell.Commands.PSUserAgent]::Chrome) $ncsiResponse = Invoke-WebRequest -Uri "http://$($ncsiHost)/$($ncsiPath)" -UseBasicParsing -UserAgent ([Microsoft.PowerShell.Commands.PSUserAgent]::Chrome); # DevSkim: ignore DS137138 Insecure URL
} }
catch { catch {
$ncsiResponse = $false $ncsiResponse = $false