Jump to content
Sign in to follow this  
DeadL3gacy

How can i run an autoit script on Windows server 2016 without the remote desktop turned on?

Recommended Posts

DeadL3gacy

I have a script that i want to run on a windows vserver (windows server 2016) but when i close the remote desktop the script doesn´t continue. Is there any way that i can make this script run on that server? Thanks in advance

Share this post


Link to post
Share on other sites
JLogan3o13

@DeadL3gacy there are a myriad of ways to do so, however they depend on what exactly your script is trying to do (Window manipulation, using MouseMove, Send, etc.). Please post your code, so we're not guessing, and we will do our best to assist.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
DeadL3gacy

my code is using MouseClick, send, WinActivate and sleep 

Share this post


Link to post
Share on other sites
JLogan3o13

That's awesome. It is still difficult to assist without seeing at least a reproducer. With no further knowledge, I can tell you that a quick search of the forum will show a number of threads discussing why you cannot use those in a closed RDP session. You need to use things such as ControlClick and ControlSend instead.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
DeadL3gacy

thank you very much, i will try it out now

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.