PeterAtkin Posted February 11, 2010 Share Posted February 11, 2010 (edited) 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 February 11, 2010 by PeterAtkin [topic='115020'] AD Domain Logon Script[/topic] Link to comment Share on other sites More sharing options...
Pantera975 Posted February 11, 2010 Share Posted February 11, 2010 Maybe you could use RunAs() RunAs("Local_Admin_Account", @ComputerName, "PASSWORD_1", 0, "C:\Path\to\Your_other\autoit_program.exe", @SystemDir) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now