Attach to User Account Control Window

Timsy01

New Member
Hi All,

I am trying to run a powershell command that opens a configuration file.After the command gets executed ,a User Account Control(UAC) window shows up.I have to select the "Yes" option on this window and only then does the file open.I have set the UAC notification setting to notify(Do not dim screen).I am not able to attach to this window using the window title(i have tried using wildcards also) or the process name(consent.exe).

When I set the UAC notification settings to Never Notify,the process works fine.But i dont want to change the notification settings.

Please help.
 

gil.silva

Active Member
Hello Timsy01,

You need to have a separate object to attach to this UAC window.
This new object should be configured (Application Modeller) to Attach to a running instance. Then, configure the Window Name and use the attach as before and you should be able to do it.
 

Timsy01

New Member
Hi Silva,

I have tried these options but am not able to attach to the UAC window.I have tried using window title("User Account Control"),process name(consent) and process ID also,but I get the same error-target application could not be identified.
 
Top