May 6th, 2020
like1 reaction

How can I prevent the user from using Snip and Sketch to take screen shots?

A customer wanted to know how they could disable the Snip and Sketch feature of Windows 10. They tried deploying policy to block the execution of C:\Program Files\WindowsApps\Microsoft.ScreenSketch_10.1907.2471.0_x64__8wekyb3d8bbwe\ScreenSketch.exe, but that didn’t help.

Okay, first of all, ScreenSketch.exe is not Snip and Sketch. Screen Sketch is a feature of the Windows Ink Workspace that lets you draw directly on the screen. It’s not the Snip and Sketch tool. Snip and Sketch (as of this writing) is part of the ShellExperienceHost.exe process, and if you block that process, you lose all sorts of things like the taskbar Calendar, the wireless network chooser, and a number of other shell features.

(Note that the above information is not contractual. The implementation details of various shell features may, and indeed have, changed over time.)

We asked why the customer felt the need to disable the Snip and Sketch feature.

The customer liaison explained that they had a program that displayed proprietary information and didn’t want their employees making screen copies of the data.

Disabling the Snip and Sketch feature is not going to solve your problems. There’s also the Snipping Tool, the PrtSc key, and all number of third party screen capture utilities. And even if you manage to get them all, the employee could just take out a digital camera and snap a photo.

That said, the customer could modify their proprietary program to call the Set­Window­Display­Affinity function to indicate that the window contents should not be included in screen captures, as I noted some time ago. The desktop compositor will prevent those pixels from being included in Bit­Blt and other screen capture functions.

UWP applications can set the Application­View.Is­Screen­Capture­Enabled property to false to exclude a view from screen capture functions.

Author

Raymond has been involved in the evolution of Windows for more than 30 years. In 2003, he began a Web site known as The Old New Thing which has grown in popularity far beyond his wildest imagination, a development which still gives him the heebie-jeebies. The Web site spawned a book, coincidentally also titled The Old New Thing (Addison Wesley 2007). He occasionally appears on the Windows Dev Docs Twitter account to tell stories which convey no useful information.

14 comments

Discussion is closed. Login to edit/delete existing comments.

Sort by :
  • Dan Bugglin

    There's probably still a way to capture. Possibly video capture/streaming software that works at a low enough level would still be able to capture it.

    I hope you let the customer know that about the amazing modern convenience called the pen (or pencil) that a malicious actor could use to WRITE DOWN information displayed on the screen. What they're trying to do is ultimately futile. There's always going to be an "analog hole" at the very least.

    https://en.wikipedia.org/wiki/Analog_hole

    Edit: Also this reminds me of airport body scanners. There was some controversy about images they captured being potentially pornographic with how they could see...

    Read more
  • Filip SkakunMicrosoft employee

    Some of the introductory information isn't entirely accurate, but it indeed matches with users' perception of the experience and the proposed problem solution would work in some scenarios (where you control the code of apps that present the data you don't want captured).

    ScreenSketch.exe is indeed the process and main executable of the Snip & Sketch (proper) app. To most users Snip & Sketch is both this app and the actual "modern snipping experience" as I like to call it, but as you suggest - ShellExperienceHost.exe hosts the actual snipping UI that runs separately from the ScreenSketch.exe process and its main...

    Read more
    • GL

      Setting window affinity doesn’t exclude it from remote desktop, and I don’t think it prevents the window from being taken screenshots of in a remote desktop session. At least that was the case for some early version of Windows 10. I remember accidentally discovering that I could screenshot DRM-protected content in Videos (now known as Movies & TV) in a remote session.

  • Piotr Siódmak

    tsk, tsk, it’s not like you (Microsoft) never tried to do the same thing: https://support.microsoft.com/en-us/help/2006298/print-screen-functionality-fails-with-no-error-message

    🙂

    I recall there also being a support article explaining how no software nor hardware will prevent the user from taking a photo with their phone or just writing it down on a piece of paper, but I can’t find it now. It was helpful with a few customers.

    • Entegy

      Where’s that old article about throwing stones in glass houses? Raymond is not Microsoft, and Outlook is not his product. He knows that when he writes about things that are done incorrectly, there’s likely a Microsoft product that also does the thing incorrectly.

      • cheong00

        Btw, I would have thought about “how to enable a window with HDCP protection”

  • Erik Fjeldstrom

    This sounds like another walls and ladders issue, but if this is just to prevent accidental disclosure of information it should be fine. Otherwise, if you can’t trust your employees not to divulge confidential data I think that you’ve already lost and should think about why you’re having the problem in the first place.