Jump to content

Total newbie: Is this possible for AutoIT?


Recommended Posts

Hi,

I want to be able to start a task when a windows 2012 server restart.

 

But for the following reasons, I cannot start it via task scheduler or windows service.

1) The server is running on a aws ec2 machine

2) I have some background task which unfortunately has some dependency on windows office. And the task cannot be automated as a windows service.

3) However if I login via RDP and start a batch file from DOS prompt the background task can be successfully started.

My goal is to automate this: I want the task to be automatically kicked start when the server reboots. 

I have tried task scheduler but it did not work. It is because my task, in addition to MS office dependency, also requires to 'runas' as a different user.  It is because I need to run multiple instance of the task. If the tasks all run under same account, some office plugin will crash because it is not designed as thread safe.

I suppose it is a hard problem. All the software components involved are not designed as background task but I need to automate them...

I believe if I can simulate my manual workflow - 'start a DOS prompt and run a batch file' - I might be able to work around it.

Any suggestion is welcome

Thnaks, Tony

Edited by kongakong
Link to comment
Share on other sites

Yes. It Is. can you explain what do you want to do exactly ?

I can even add it s easy with Autoit...

 

RunAs exist.

and you can manage the Registry to RunAs the script you will make after each reboot.

You can even cript passwords/account credential...

Edited by caramen

My video tutorials : ( In construction )  || My Discord : https://discord.gg/S9AnwHw

How to Ask Help ||  UIAutomation From Junkew || WebDriver From Danp2 || And Water's UDFs in the Quote

Spoiler

 Water's UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

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