Jump to content

AutoIt WITHOUT RDP/VNC after AutoAdminLogon


Recommended Posts

Hello Friends!

I have a big problem and I hope you can help me fix it.

My project relies on this solution so please, give me a hint!

I use Windows Server 2003 and have programed several batch files

with AutoIt Scripts.

When I login using RDP or VNC, everything works like a charm,

even if I log out VNC (the VNC session is still alive and AutoIt

can interact with the GUI, because it exists), it works.

The problem is: I only can start the server every night at 3.00 am.

First: Widnows has to login automatically, this is only possible with

a Registry fix called "AutoAdminLogon". Windows starts, logs in but

AutoAdminLogon doesn't provide either RDP nor VNC nor does it

execute my AutoIt scripts (don't know why, perhaps because the GUI

is not available?!)

Question:

How is it possible to execute AutoIt Scripts automatically

after a Windows Server 2003 is booted up and logged in automatically?

Thanks.

David

Link to comment
Share on other sites

Put a shortcut to the executable in the startup folder:

C:\Documents and Settings\Administrator\Start Menu\Programs\Startup

I did this very thing for a web server at my company.

A second option is to use Task Scheduler to run it at log on.

#include <ByteMe.au3>

Link to comment
Share on other sites

It seems to work now!

What is the difference between the AU3 and EXE scripts?

They are both running in the windows session instance, which

is logged in automatically! But it seems that only EXE are really

working and interacting with the Windows GUI!

Edited by vielhuber
Link to comment
Share on other sites

The .au3 files are just code. They need to be compiled to run independently or else you will have to have a copy of autoit3.exe in the folder that has the .au3 file. Then you could call it in a batch file like this:

autoit3.exe scriptfile.au3

#include <ByteMe.au3>

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