Update Test-Network.ps1
parent
f7e6edc085
commit
536a74d88d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue