chore: set a user agent for IWR
parent
3b8d1f5ff2
commit
a3718d6f09
|
@ -20,7 +20,7 @@ function Test-Network {
|
|||
}
|
||||
|
||||
try {
|
||||
$ncsiResponse = Invoke-WebRequest -Uri "http://$($ncsiHost)/$($ncsiPath)" -UseBasicParsing
|
||||
$ncsiResponse = Invoke-WebRequest -Uri "http://$($ncsiHost)/$($ncsiPath)" -UseBasicParsing -UserAgent ([Microsoft.PowerShell.Commands.PSUserAgent]::Chrome)
|
||||
} catch {
|
||||
$ncsiResponse = $false
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue