Jump to content
Sign in to follow this  
PeterAtkin

Logon script need elevation?

Recommended Posts

PeterAtkin

OK Here is the problem or not as it may be...

I have converted our login script to autoit and complied it into an .exe it is running fine mostly however one little bug in the ointment.

Previously in the old logon.cmd (batch) file I did not require to elevate the script but now it's in autoit, I do know it's to do with the UAC so my question is:

Once elevated is there a way to make this permanent so the user / users don't keep on getting asked if it's OK to run the script or worse having to have the administrator at every desk 9AM in the morning to let the users login.

I have no issues doing once e.g. for the first time that the price of security but is not really feasible to do it every time a logon.exe runs, we just don't have the manpower for that.

Hope that makes sence.

Edited by PeterAtkin

[topic='115020'] AD Domain Logon Script[/topic]

Share this post


Link to post
Share on other sites
Pantera975

Maybe you could use RunAs()

RunAs("Local_Admin_Account", @ComputerName, "PASSWORD_1", 0, "C:\Path\to\Your_other\autoit_program.exe", @SystemDir)

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.