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