Epulone Posted December 22, 2018 Share Posted December 22, 2018 I have created a small autoit script (compiled) that at logon of a specific local user (student) start a program, insert the password and active the freezing of the C: driver. To avoid the user could block the progress of the automate sequence (about 20 seconds) I added blockinput. It seems blockinput needs admin credential to work. I added: 1) #RequireAdmin => but popup the UAC windows to confirm 2) Runas ( RunAs($USERNAME, @ComputerName, $PASSWORD)) => but it didn't work How can I solve it out. Thanks Link to comment Share on other sites More sharing options...
Epulone Posted December 24, 2018 Author Share Posted December 24, 2018 So , is there any solution to elevate the script (BlockInput()) and run it in elevate mode ? BlockInput(1) ........................... BlockInput(0) 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