Questions tagged [invoke-webrequest]
256 questions
0
votes
0 answers
The Local Security Authority cannot be contacted
I've tried to run some script with powershell, but have this error, and then realized that i can't make simple invoke-webrequest. I've tried to change dns server and flush dns cache, but it's doesn't work.
Where is the problem?
PS D:\Soft>…

Denis Samotuga
- 1
- 1
0
votes
2 answers
Powershell Curl alternative with Multiform data in Body getting 400 BAD request
I have a curl command that i translated in to powershell but i get Below error
ErrorMessage
The remote server returned an error: (400) Bad Request.
CanTimeout : True
ReadTimeout : -1
WriteTimeout : -1
CanRead : True
CanSeek :…

wehelpdox
- 339
- 6
- 16
0
votes
0 answers
getting the latest version of a software from the web if it is not installed with powershell
I've written this code and does not have any error but the if part does not work
another problem is that it does not consider the version number as a version so the is clause can cot work
can someone guide me what the problem is
Windows client" |…

atefeh kasiri
- 39
- 5
0
votes
1 answer
getting the latest download url and version of a software from a website with powershell
I want to take the take the latest version of the software and check with the version that is installed on system if it is newer install the new version .
''' $web = Invoke-WebRequest -Uri "https://www.webex.com/downloads/jabber/jabber-vdi.html"
(…

atefeh kasiri
- 39
- 5
0
votes
1 answer
Investing.com scrape historical data with Powershell
I was inspired by the answer here and the function get_stock_historical_data in python module investpy to write in Powershell a function that retrieves all the daily prices of a stock between two dates :
$uri =…

Alex
- 217
- 1
- 17
0
votes
1 answer
Invoke-WebRequest to null if it fails
I'm running this part of the code in my script but I have small issue.
$response = Invoke-WebRequest -Uri "http://169.254.169.254/metadata/instance/compute?api-version=2019-06-01" -Headers @{Metadata = "true"} -TimeoutSec 1 -ErrorAction…

Bombbe
- 153
- 1
- 11
0
votes
1 answer
How to authorize a request from Power Automate Desktop to Dataverse?
I'm looking for some advice about authorization for a request I'm making in Power Automate Desktop using the action 'Invoke Web Service'. I'm using this request to get information from Dataverse.
I've currently set up this request using OAuth2.0…

Tor
- 1
- 1
0
votes
0 answers
cURL to PoSH Conversion Assistsance
I'm trying to convert a cURL command into PoSH so I can then use it in an automation effort. I'm struggling to figure out how to handle the -d. I've used PostMan to try and figure out which kind of body type lines up with -d but none of them…

topcity36
- 35
- 6
0
votes
2 answers
Invoke-WebRequest : The underlying connection was closed: An unexpected error occurred on a send
The following error message is encountered when executing Invoke-WebRequest. It is found on the Internet that the following command needs to be added before the command, but the error is still the same.
[Net.ServicePointManager]::SecurityProtocol =…

Eric46900
- 3
- 1
- 1
- 4
0
votes
0 answers
Invoke web request throwing an error : Invoke-WebRequest : {"errors":[]}
I am using a powershell script to get details from a website via invoke-webrequest. By using the credentials i have connecting to the website using invoke-restmethod to get the token.
After getting the token i used the token to retrieve the details…

Developer____
- 5
- 4
0
votes
1 answer
Powershell: Invoke-WebRequest to Pull Expiry from website. Can't get to content
I have a ton of Dell Equipment that I need to check the warranty date on. I would like to use PowerShell to go the the Dell support page and just scrape the expiration date from the site, but I can't seem to get to the information.
#### Make sure…

n00b2Everything
- 41
- 6
0
votes
1 answer
Invoke-WebRequest : The remote name could not be resolved: 'http'
I have been working with Powershell all day, playing with proxy settings and related. A POST request that once worked earlier in the day, is now stating a very bizarre error:
The request:
$tenantId = '8331e1..........'
$client_id =…

Sauron
- 6,399
- 14
- 71
- 136
0
votes
1 answer
Invoke-WebRequest equivalent of wget -N (timestamping)
wget -N (or more verbose wget --timestamping) has the nice effect that files that are already downloaded are not attempted to be downloaded again.
That way you can save time and resources. I'm looking for the equivalent in PowerShell's…

guerda
- 23,388
- 27
- 97
- 146
0
votes
0 answers
Convert a Curl Command to PowerShell web request
I am trying to use an invoke-webrequest or invoke-RestMethod for a curl command but can't quite get it right. The curl command that functions is:
curl.exe -X GET -H "Content-Type: application/json" --user 'blahblah:blahblah'…

TankCR
- 61
- 1
- 7
0
votes
1 answer
Invoke-Webrequest different from browser
I had a script that can parse html table to powershell table.
Script broke after specific website update, Now when i'm trying to parse the table I get false information (Same when I open the website from internet explorer 11).
Here's the…

Moshiko
- 29
- 5