OSDeploy | Sune Thomsen
TwitterLinkedInWindows 365 CommunityMVP ProfileGitHub
  • Home
  • Blog
    • Microsoft Intune
      • How to migrate BitLocker key(s) from all fixed drives to Microsoft Entra ID.
      • Migrate Bitlocker Recovery Key(s) to Azure AD with Proactive Remediation
      • Migrate imported GPOs to Intune with Group Policy analytics (preview)
      • Group Policy analytics (preview) made a bit easier with PowerShell
      • Analyze on-premises GPOs with MEM Group Policy Analytics (preview)
    • Virtual Machine
      • Fix the Hyper-V virtual switches after updating to Windows 11 (22H2)
    • πŸ†•Windows 365
      • πŸ†•Windows 365 Boot: Why User-Driven Mode?
      • πŸ†•Enhancing Security With Intune MAM (preview) for Windows 365
      • The Concept of Windows 365 Switch
      • The Concept of Windows 365 Boot
      • The Concept of Windows 365 Frontline
      • Move Cloud PCs to a new Azure Region or Azure Network Connection
      • Windows 365 End-User Experience (Tips & Tricks) – Part 4. Windows 365 app and Cloud PC reporting
      • Windows 365 End-User Experience (Tips & Tricks) – Part 3. Multimedia Redirection
      • Windows 365 End-User Experience (Tips & Tricks) – Part 2. Teams Optimization, SSO, and Localization
      • Windows 365 End-User Experience (Tips & Tricks) – Part 1. Connection experience
      • How to Configure Windows 365 Azure AD Join Single Sign-on (SSO)
      • Keep Windows 365 current and stay current with Windows Autopatch
      • Provide the end-users with a localized Windows 365 Cloud PC experience
      • How to configure Windows 365 Enterprise Azure AD join
      • How to secure Windows 365 using a FIDO2 security key
      • Prevent sensitive information from being captured on Windows 365 CPCs
      • Manage local administrator rights on Windows 365 Cloud PCs.
      • How to create a custom image for Windows 365 Enterprise Cloud PCs
      • How to reprovision existing Cloud PC (Windows 365) to Windows 11
      • How to configure Windows 365 Enterprise in Microsoft Endpoint Manager
  • Archive
    • Deployment
      • OSDCloud: The ZTI Way
      • OSDBuilder: WinPE Customization
    • Microsoft Configuration Manager
      • ConfigMgr: Run "All" Client Actions During OSD
      • ConfigMgr: WIM Your Applications Like a Boss
      • ConfigMgr: Deploy UWP Applications During OSD
      • ConfigMgr: Building a Basic LAB Environment
        • Part 1 - Installing Windows 10 (1909) on the Host
        • Part 2 - The Host and Hyper-V Configuration
        • Part 3 - Setting up the Domain Controller
          • Active Directory
          • DHCP
          • DNS
        • Part 4 - Setting up Microsoft Endpoint Configuration Manager
          • Prerequisites
          • SQL
        • Part 5 - Setting up Discovery Methods and Boundaries
        • Part 6 - Setting up Software Update Point
      • ConfigMgr: Splash Screen for Driver and BIOS Update
      • ConfigMgr: Global Conditions for Dell WD15 Dock Detection
    • Microsoft Intune
      • Block personally owned devices in Intune with enrollment restrictions
      • Remove Windows 10 built-in apps with Intune & Microsoft Store for Business Apps
    • Windows
      • Win10: Multi-Language Toast Notifications
        • Toast Notification: Low Disk Space
  • Links
    • Blogs
    • Microsoft
    • Scripts
Powered by GitBook
On this page
  • BEFORE YOU BEGIN
  • Introduction
  • Prerequisites
  • Enable Screen Capture Protection with GPO
  • Enable Screen Capture Protection with PowerShell
  • Limitations and known issues
  • Summary

Was this helpful?

  1. Blog
  2. Windows 365

Prevent sensitive information from being captured on Windows 365 CPCs

30-05-2023 8:02 PM

PreviousHow to secure Windows 365 using a FIDO2 security keyNextManage local administrator rights on Windows 365 Cloud PCs.

Last updated 9 months ago

Was this helpful?

BEFORE YOU BEGIN

Disclaimer: All information and content in this blog post is provided without any warranty whatsoever. The entire risk of using this information or executing the provided content remains with you. Under no circumstances should the mentioned persons or vendors, the author, or anyone else involved in creating these blog posts be held liable for any damage or data loss.

Prevent sensitive information from being captured on Cloud PCs with screen capture protection.

Introduction

In this blog post I will show you how to enable a feature called β€œScreen Capture Protection” which will prevent sensitive information from being captured on your Windows 365 Cloud PC(s), intentionally or by malicious software. This can be done in several ways, but in this post I will walk you through the Group Policy Object (GPO) and the PowerShell approach.

Important note. It is recommended to use this feature together with disabling clipboard, drive and printer redirection. Disabling redirection will help to prevent the user(s) from copying the captured screen content from the Cloud PC. However, there’s no guarantee that this feature will protect content in all scenarios, for example, where someone takes photography of the screen.

Prerequisites

Only clients that support this feature can connect to a Windows 365 Cloud PC. Following clients currently support screen capture protection:

  • Windows Desktop Client version 1.2.1672 and above

  • macOS client version 10.7.0 and above

Get the Microsoft Remote Desktop client.

Enable Screen Capture Protection with GPO

Okay, let’s get started! – The very first thing we need to do, is install the GPO administrative templates on our Domain Controller, which adds the Azure Virtual Desktop (AVD) settings to Group Policy Management.

Copy the β€œen-us” folder and β€œterminalserver-avd.admx” file to the root of either the local or central store.

Group Policy Local Store: β€œ%windir%PolicyDefinitions” Group Policy Central Store: β€œ%windir%SYSVOLsysvoldomain.localPoliciesPolicyDefinitions”

Open β€œGroup Policy Management” and create or modify an existing GPO.

From β€œGroup Policy Management Editor” navigate to Computer Configuration | Policies | Administrative Templates | Windows Components | Remote Desktop Services | Remote Desktop Session Host | Azure Virtual Desktop

Enable the β€œEnable screen capture protection” setting. – Don’t forget to link the GPO to the correct OU.

Now you just wait for the GPO to be applied on the Windows 365 Cloud PC or if you have local administrator privileges you can open Command Prompt in administrator elevated mode, and run the following command: β€œgpupdate /force”.

Open β€œRegistry Editor” and navigate to β€œHKLM:SOFTWAREPoliciesMicrosoftWindows NTTerminal Services” and check that β€œfEnableScreenCaptureProtect” with value β€œ1” exists.

Restart your Windows 365 Cloud PC.

The next time you try to capture the screen, the result should be a black window. Awesome, it works!

Enable Screen Capture Protection with PowerShell

Click on Reports | Endpoint analytics | Proactive remediations | Create script package.

Fill in the required field and click Next.

Add the detection and remediation script, leave the rest as is and click Next. Set scope tags if needed and click Next.

Assign it to a security group containing all or some of your Windows 365 Cloud(s). Click on the three dots to modify the schedule. Click Apply when you are done, and then click Next.

Review your configuration and click Create.

After a while, the screen capture protection will be enabled on the Windows 365 Cloud PC, now set by the PowerShell script.

And once again, we can confirm that the end result is a black window, if we try to capture the screen.

Limitations and known issues

  • This feature protects the Remote Desktop window from being captured through a specific set of public operating system features and APIs. However, there’s no guarantee that this feature will strictly protect content, for example, where someone takes photography of the screen.

  • Customers should use the feature together with disabling clipboard, drive, and printer redirection. Disabling redirection will help to prevent the user from copying the captured screen content from the remote session.

  • Users can’t share the Remote Desktop window using local collaboration software, such as Microsoft Teams, when the feature is enabled. If Microsoft Teams is used, both the local Teams app and Teams running with media optimizations can’t share the protected content.

If screen capture protection is enabled, and you are trying to connect to a Windows 365 Cloud PC from the web portal, you will receive a message similar to the one below.

Summary

In this blog post you have learned how to enabled screen capture protection on your Windows 365 Cloud PC(s) with either GPO or proactive remediation script from Microsoft Endpoint Manager admin center. Personally I would very much appreciate if it was possible to set this setting through a configuration profile within Microsoft Endpoint Manager Intune (I haven’t found it yet, but please correct me if it already exists). And then it would be nice to see support for screen capture protections on other platforms in the near future or at least come up with a more user-friendly message than just β€œDisconnected” if you from the web portal are trying to connect to a Windows 365 Cloud PC where screen capture protection has been enabled. That was the final words. – Happy testing! As always, if you have any questions regarding this topic, feel free to reach out to me.

Source:

macOS Client Download the Microsoft Remote Desktop client from the

Windows Desktop Client (Supported on Windows 10, Windows 10 IoT Enterprise, and Windows 7) Download the Microsoft Remote Desktop client for Download the Microsoft Remote Desktop client for Download the Microsoft Remote Desktop client for

Download the Extract the contents of the downloaded cab file and zip archive.

Now, let’s do it the PowerShell way. Go to The proactive remediation script can be found in my

Source: Important note. Please keep in mind that screen capture protection is only supported on Windows Desktop and macOS clients. This means that if you enable this feature, you will not be able to connect to your Windows 365 Cloud PC(s) from the web portal or other platforms (at least for now).

πŸ†•
Microsoft Docs
Mac App Store
Windows 64-bit
Windows 32-bit
Windows ARM64
Azure Virtual Desktop administrative templates
https://intune.microsoft.com
GitHub Repository
Microsoft Docs