Jump to content

Windows Security won't input password


Mackey
 Share

Recommended Posts

#include <IE.au3>

If $CmdLine[0] < 2 Then
   MsgBox($MB_OK, "Usage", "Sample_Format <username> <password>")
Else
   Sample_Format($CmdLine[1], $CmdLine[2])
EndIf

Func Sample_Format($username, $password)
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE","iexplore.exe","REG_DWORD",0)
   Local $ie = _IECreate("https://"&$username&":"&$password&"@<Proxy_IP>/")
      $hwnd = _IEPropertyGet($ie, "hwnd")
      WinSetState($hwnd, "", @SW_MAXIMIZE)
   Local $oie = _IEAttach("Cert")
    _IELinkClickByText($oie, "Continue to this website (not recommended).")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_HTTP_USERNAME_PASSWORD_DISABLE","iexplore.exe","REG_DWORD",1)
   WinWaitClose($hwnd)
EndFunc

Hi Tech Team, 

So I'm having a problem on automating BlueCoat Proxy as it requires credentials by inputting it on Windows Security. Whenever I run this command it only inputs the username but not the password on Windows Security Prompt. (Please see image below)

AutoIT_1.JPG.f8ceeab947dbfb4a90352a5d63fe2043.JPG

I wonder if there is something I need to tinker on the script or on the Internet Settings. Really appreciate your help on this. Thank you!

Edited by Mackey
Link to comment
Share on other sites

if you input the password manually, does it accept it (is the password correct)?

If you input the user and password in the URL manually, and accept the certificate warning, does it work (is it a script issue or an IE behavior)?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...