Jump to content

Auto IT opening File Explorer on (Windows Server 2016 Datacenter) - (Moved)


Recommended Posts

Hello every, currently, I am running with issue, I have created .exe with below script, which running fine on my windows 10 machine, 

i am doing automation testing want to login automatically to website with basic authentication. below code is perfectly working on server (Windows Server 2016 Datacenter)/local (windows 10)

however, on server when script (.exe) sending enter, it is opening (File Explorer) instead of login into website, any Idea what went wrong?(it is bit odd issue)

 

$title= "Windows Security"
WinWaitActive($title)
Sleep(1000)
send("domain\user1")
send("{TAB}")
send("password")
send("{ENTER}")

Link to comment
Share on other sites

it is IE local host with basic authentication

 

I am kinda using passwrkd like with special char !# inside it

send("password#C!QAZXSWEDCzaqwsxcde#e!qXz2w")

 

I think it is the password which is messing it up, can you tell me how do I write above password in AutoIT without prompting File Explorer as result

image.png.3ecc61d5ac497c0aaa2224c5be49f9b9.png

Link to comment
Share on other sites

Thanks guys, I Figure it out 

i resolved statement send("password#C!QAZXSWEDCzaqwsxcde#e!qXz2w") as below, and now it is working fine

$title= "Windows Security"

$pass = "password#C!QAZXSWEDCzaqwsxcde#e!qXz2w"
WinWaitActive($title)
Sleep(1000)
send("domain\user1")
send("{TAB}")
send($pass, 1)
send("{ENTER}")

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...