commit
6e76f377a4
|
@ -20,7 +20,7 @@ function Test-Network {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$ncsiResponse = Invoke-WebRequest -Uri "http://$($ncsiHost)/$($ncsiPath)" -UseBasicParsing
|
$ncsiResponse = Invoke-WebRequest -Uri "http://$($ncsiHost)/$($ncsiPath)" -UseBasicParsing -UserAgent ([Microsoft.PowerShell.Commands.PSUserAgent]::Chrome)
|
||||||
} catch {
|
} catch {
|
||||||
$ncsiResponse = $false
|
$ncsiResponse = $false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue