I'm in the need of automating an administration task of a web application. I used Powershell and the InternetExplorer.Application ComObject to accomplish this task. The relevant part is to navigate to a webpage and gather all relevant links, navigate there and click on a button on those pages. Now, one of the administrators wants to add Basic Auth to those pages, but I can't figure out, how to get this working from powershell.
Has anyone any ideas, how to use Basic Auth here? Searching google, I'm only seeing tips like "use WebClient instead of IE". Also, the following won't work:
$url = "http://"+$user+":"+$pass+"@example.com/admin/something" $ie.navigate($url)