Reputation: 493
My goal is to scrape a web page using PowerShell, which I can do usually. However, I'm trying to open a specific URL in IE. The page that comes up uses single sign on in the IE browser. Is there a way to do this with invoke-webrequest (without a user entering credentials?) Or another way to get the data off of the page?
It's assumed the user running the script has access to the site/URL.
Upvotes: 3
Views: 7560
Reputation: 19664
Utilize the -UseDefaultCredentials
switch on Invoke-WebRequest
to grab the current user's session.
Upvotes: 4