How to screen shot a UAC prompt?

前端 未结 6 694
温柔的废话
温柔的废话 2020-12-04 21:19

I\'m trying to document a work flow with a series of screen shots. At one point in the flow, a UAC prompt appears, and I\'d like to grab a bitmap of it to make my storyboar

6条回答
  •  Happy的楠姐
    2020-12-04 22:20

    Alternative to Michael Goldshteyns answer

    You can more quickly achieve the same by copying the first registry command below and pasting it into an elevated command prompt, then hit enter.

    To turn off PromptOnSecureDesktop:

    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /V "PromptOnSecureDesktop" /T "REG_DWORD" /D "0x00000000" /F 1>NUL
    

    This will turn off SecureDesktop, leaving the computer vulnerable, but you will be able to screenshot the UAC prompts.

    All elevation requests go to the interactive user's desktop. Prompt behavior policy settings for administrators and standard users are used.

    To turn on PromptOnSecureDesktop:

    This will turn on SecureDesktop.

    REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /V "PromptOnSecureDesktop" /T "REG_DWORD" /D "0x00000001" /F 1>NUL
    

    All elevation requests go to the secure desktop regardless of prompt behavior policy settings for administrators and standard users.

    ⚠ Important: After you are done, make sure you revert the command by turning PromptOnSecureDesktop off.

提交回复
热议问题