Jump to content

Recommended Posts

Posted

Hi

 

Just starting to write scripts using AutoIT to install some software (ExamBase KS3 Testing client) - it works fine if I call it from the client PC whilst logged in as administrator, but I would like to automate the process on a suite of PCs - whats the easiest way to achioeve that?

 

Thanks

Posted

Well if you use a GPO startup script then this will run with admin rights.

 

Alternatively you could use psexec and a feed it a list of computer names.

You can also do remote process invocation using WSH via your favourite script language VBS/JS,PSH,KiX etc.

 

With psexec and WSH you would have to call the script with an account that would have admin rights on the target machines. Also exceptions will be needed if the XP/Visata firewall is enabled.

Posted

I use the RunAsSet command:

 

RunAsSet("administrator", @ComputerName, "PASSWORD")

 

WHAT YOU WANT TO DO

 

RunAsSet()

Have it running at startup or when a user logs on. I tend to stick flags in the scripts so they will either run or not run if you get my drift....

Hope that helps.

Posted
I use the RunAsSet command:

 

Have it running at startup or when a user logs on. I tend to stick flags in the scripts so they will either run or not run if you get my drift....

Hope that helps.

 

A word of caution Mattx. There is some danger of your administrative password being discovered. I know you can compile an AU3 script to EXE with a password but this is as about as strong as a ZIP or Office file password.

 

There is a little secuirty through obscurity as the user would have to find the GPO, then the find the script and then undo the compilation. Akward but not impossible.

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



×
×
  • Create New...