MrMr
MrMr

Reputation: 493

Use PowerShell to Scrape WebPage That Uses Single Sign On?

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

Answers (1)

Maximilian Burszley
Maximilian Burszley

Reputation: 19664

Utilize the -UseDefaultCredentials switch on Invoke-WebRequest to grab the current user's session.

Upvotes: 4

Related Questions