Thanks! I'm sorry, I'm not getting this or how to solve this, can I kindly ask you for some assistance on how to write this?
Struggeling with Invoke-WebRequest
lupinlicious
136
Reputation points
Hello,
I'm trying to parse and download BIOS updates from Dell, when I run the script on a Dell OptiPlex 7080 I get the following error. Message: Cannot convert 'System.Object[]' to the type 'System.Uri' required by parameter 'Uri'. Specified method is not supported.
Invoke-WebRequest -Uri'https://downloads.dell.com/Catalog/DellSDPCatalogPC.cab' -OutFile $CabPath -Verbose
[int32]$n=1
While(!(Test-Path $CabPath) -and $n -lt '3'){
Invoke-WebRequest -Uri'https://downloads.dell.com/Catalog/DellSDPCatalogPC.cab' -OutFile $CabPath -Verbose
$n++
}
Any help would be appreciated!
Best regards