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)
link|improve this question
feedback

1 Answer

Can you use integrated NTLM authentication instead of basic auth? I have used the COM object automation and PowerShell before with NTLM auth and it works like a champ.

link|improve this answer
On my workstation, I'm logged in with user "myUser", but on the server, I'll have to use "anotherAdminUser" - If I've understood NTLM right, it uses your current username. So I don't think, this could help :'(. Please correct me, when this should work anyway. – Elvith May 31 '11 at 7:47
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.