How to provide Login using Windows Security Browser Popup using Powershell

Welcome Forums General PowerShell Q&A How to provide Login using Windows Security Browser Popup using Powershell

Viewing 1 reply thread
  • Author
    Posts
    • #41396
      Participant
      Topics: 23
      Replies: 17
      Points: 1
      Rank: Member

      Hi All,

      My requirement includes opening an URL -> it will ask for credentials ( Windows security popup ) -> Provide credentials and it should login.

      I am able to connect to the URL using powershell but not able to give the credentials in the Windows Security popup. I dont want to use VBScript(Send keys). Please help me out with any solution using Powershell itself.

      I searched the whole google, didn't got a solution. Friends need all your expertise help here.

    • #41401
      Keymaster
      Topics: 13
      Replies: 4872
      Points: 1,870
      Helping HandTeam Member
      Rank: Community Hero

      PowerShell doesn't have an equivalent to SendKeys, and isn't really designed for GUI automation. PowerShell also isn't a web browser; sites that are intended only for interaction with a web browser aren't going to be easy to automate.

      You'll need to learn a bit about HTTP (which is beyond what this forum is about). It's possible that the web page you're attempting to access is sending an HTTP auth request. The browser handles that by displaying the dialog; in PowerShell, you could just send the HTTP auth response instead of using a dialog. But I don't want to imply that this is simple; you're basically re-building part of what a web browser is and does. It's potentially complex, and PowerShell might not be the best language for it.

Viewing 1 reply thread
  • The topic ‘How to provide Login using Windows Security Browser Popup using Powershell’ is closed to new replies.