Jump to content

BlockInput with elevate permission


Epulone
 Share

Recommended Posts

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

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

×
×
  • Create New...