Jump to content

Recommended Posts

Posted

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

 

Posted

 

So , is there any solution to elevate the script (BlockInput()) and run it in elevate mode ?

BlockInput(1)
...........................
BlockInput(0)

 

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...