Jump to content
Sign in to follow this  
vielhuber

AutoIt WITHOUT RDP/VNC after AutoAdminLogon

Recommended Posts

vielhuber

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

Share this post


Link to post
Share on other sites
sleepydvdr

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>

Share this post


Link to post
Share on other sites
vielhuber

Thanks for your answer, dude!

The BAT FIles are still in the StartUp!

But they seem to start until the "au3"-Files need

to interact with the GUI!

Does this work with you? Even with AutoAdminLogon?

Share this post


Link to post
Share on other sites
BrettF
vielhuber

No, should I try it with

Aut2Exe

for example?

Could this be a solution?

Share this post


Link to post
Share on other sites
vielhuber

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

Share this post


Link to post
Share on other sites
sleepydvdr

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>

Share this post


Link to post
Share on other sites
vielhuber

Yeah I did knew this, because with the RDP Session Logged in,

everything worked fine (i did autoit3.exe scriptname.au3).

But it seems that without RDP only the EXE Files are working.

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.