Merge pull request #9 from AndrewDemski-ad-gmail-com/AndrewDemski-ad-gmail-com-patch-5

Update Test-Network.ps1
pull/690/head
Andrzej Demski 2024-09-04 22:48:30 +02:00 committed by GitHub
commit bf4997d602
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