You can't, at least not using what's built into PowerShell. It doesn't have
any way of activating that GUI dialog box and sending keystrokes to it.
--
Don Jones
Windows PowerShell MVP
Founder:
www.ScriptingAnswers.com
Co-Author: "Windows PowerShell: TFM"
"Vlince" <Vlince@discussions.microsoft.com> wrote in message
news:4420ECDC-7DF4-4038-B569-3D1B90235A62@microsoft.com...
> Hello all,
>
> In powershell, how can I pass the credentials to a authenticaiton window
> of
> a web site.
>
> Assuming I wish to nagivate to www.yahoo.com/admin and I get prompted for
> the network username and password, how can I provide these two fields with
> the proper value from PowerShell without being prompted for the dialog
> window.
>
> I know I'll have to save the password in some secure file but for now I
> just
> want to know if its fesable.
>
> Thanks in advance
>