CarlMontgomery Posted January 17, 2011 Share Posted January 17, 2011 (edited) Hi All, It seems my google foo and and forum search foo has failed me. I'm trying to write a script that simply idles and detects when a user gets a UAC prompt. I meant generally rather than from my own script. I'm trying to create a log of these prompts so i can get a good picture of how many and when the user is challenged with a UAC prompt. Havnt been able to find a UAC API or anywhere it gets logged. Only possibility i can think of is trying to detect when AutoIt's input is blocked (since UAC blocks pretty much everything) but dont know where to start with that either. Not even where to start on this. any ideas? Carl. Edited January 17, 2011 by CarlMontgomery Link to comment Share on other sites More sharing options...
smartee Posted January 17, 2011 Share Posted January 17, 2011 Hi All,It seems my google foo and and forum search foo has failed me.I'm trying to write a script that simply idles and detects when a user gets a UAC prompt. I meant generally rather than from my own script.I'm trying to create a log of these prompts so i can get a good picture of how many and when the user is challenged with a UAC prompt.Havnt been able to find a UAC API or anywhere it gets logged.Only possibility i can think of is trying to detect when AutoIt's input is blocked (since UAC blocks pretty much everything) but dont know where to start with that either.Not even where to start on this. any ideas?Carl.When an application asks for permission a process "consent.exe" is launched. Simply log how many times that process is launched and voila Link to comment Share on other sites More sharing options...
CarlMontgomery Posted January 17, 2011 Author Share Posted January 17, 2011 When an application asks for permission a process "consent.exe" is launched. Simply log how many times that process is launched and voila Exactly what i was looking for. Too easy!Thanks for that. Link to comment Share on other sites More sharing options...
cu0x Posted November 11, 2016 Share Posted November 11, 2016 Hello Guys I'm facing the same issue, is there any way to find out or the UAC window closed is? Already check for consent.exe and looks like its open and close in lease than a ms... Here is my code to check if the process exists. Local $GetconsentPID Local $GetconsentRtnValue = False While 1 $GetconsentPID = ProcessExists("consent.exe") If $GetconsentPID <> 0 Then $GetconsentRtnValue = True EndIf If $GetconsentRtnValue = True Then ProcessWaitClose($GetconsentPID) ExitLoop EndIf WEnd 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