How to screen shot a UAC prompt?

WindowsUacScreenshot

Windows Problem Overview


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 storyboard complete. Because UAC prompts are on a virtual desktop (or something like that), the usual Alt+PrintScreen doesn't work. Any suggestions?

Windows Solutions


Solution 1 - Windows

This method using the group policy editor should do the job:

> 1) Run gpedit.msc
2) Under Computer > Configuration\Windows > Settings\Security Settings\Local > Policies\SecurityOptions:
> > Change “User Account Control: Switch > to the secure desktop when prompting > for elevation” to disabled

Undo this change after the screenshot, because it makes the system less secure!

Solution 2 - Windows

Change your UAC settings to disable the secure desktop, and then you can take the screenshot. In Windows 7, this is one of the options on the UAC slider, in Vista, I believe you need to configure the Security Policy.

Alternatively, run Windows in a VM and take a screenshot of that.

Solution 3 - Windows

You can also remote desktop to the Windows 7 machine and run the screenshotter (or video capture) on the other machine. I've used this very successfully.

Solution 4 - Windows

A step by step Guide

Step 1. Right click on the Program that you want to install and choose 'Run as administrator'.

enter image description here

Step 2. Now when the UAC Prompt appears, click on 'Change when these notifications appear'.

enter image description here

Step 3. Take the security Bar one-step down. Be sure to find that 'do not dim my desktop' is in the description. Now click on 'OK'.

enter image description here

Click on 'yes' when the UAC ask for permission.

Step 4. Now close all UAC Prompt dialog box. Again start from the beginning. You are now able to take a screenshot of the UAC Prompt dialog box with keyboard's print screen button or ms snipping tool.

Note that it will make your system less secure. So, make the security level as previous after the completion of your need.

Solution 5 - Windows

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.

Screenshot of a UAC prompt without SecureDesktop

> 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

Screenshot of a UAC prompt with SecureDesktop activated

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

Solution 6 - Windows

Simple method: Use windows accessory SnippingTool from MS. It just works!

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAdrian McCarthyView Question on Stackoverflow
Solution 1 - WindowsMichael GoldshteynView Answer on Stackoverflow
Solution 2 - WindowsMichael MadsenView Answer on Stackoverflow
Solution 3 - WindowsKate GregoryView Answer on Stackoverflow
Solution 4 - WindowsMd. Harun Or RashidView Answer on Stackoverflow
Solution 5 - WindowsAreteView Answer on Stackoverflow
Solution 6 - WindowsotterbView Answer on Stackoverflow