场景 3

Last published : Nov 03, 2026
此方案介绍如何为特定 Active Directory 组中的用户禁用应用程序保护。
以下是为属于 Active Directory 组 xd.local\sales 的 Win10Desktop 用户禁用应用程序保护的步骤:
  1. 运行 Get-BrokerAccessPolicyRule 以查看 Win10Desktop 的两个代理访问策略。对于交付组 Win10Desktop,有两个代理访问策略:Win10Desktop_AG 和 Win10Desktop_Direct。记下 Win10Desktop 的桌面组 UID。
  2. 为 Win10Desktop 创建一个代理访问策略规则,以筛选来自 Active Directory 组 xd.local\sales 中用户的连接。
    New-BrokerAccessPolicyRule -Name Win10Desktop_AG_Sales_Group -DesktopGroupUid <Uid_of_desktopGroup> -AllowedConnections ViaAG -AllowedProtocols HDX, RDP -AllowedUsers Filtered -AllowRestart $true -Enabled $true
    Uid_of_desktopGroup 是通过在步骤 1 中运行 GetBrokerAccessPolicy 规则获得的交付组的 DesktopGroupUID。
  3. 使用以下命令为属于 AD 组 xd.local\sales 的 Windows 10 桌面用户禁用应用程序保护策略:
    Set-BrokerAccessPolicyRule Win10Desktop_AG_Sales_Group -AllowedUsers Filtered -IncludedUsers xd.local\sales -IncludedUserFilterEnabled $true -AppProtectionScreenCaptureRequired $false -AppProtectionKeyLoggingRequired $false
  4. 使用以下命令为除来自 xd.local\sales 的用户之外的所有其他网关连接启用应用程序保护策略:
    Set-BrokerAccessPolicyRule Win10Desktop_AG -AllowedUsers Anyauthenticated -ExcludedUserFilterEnabled $true -ExcludedUsers xd.local\sales -AppProtectionScreenCaptureRequired $true -AppProtectionKeyLoggingRequired $true
  5. 验证
    如果 Citrix Workspace 应用程序已打开,请注销。以 xd.local\sales Active Directory 组中的用户身份登录 Citrix Workspace 应用程序。启动受保护的资源,您会看到应用程序保护已禁用。
    注销 Citrix Workspace 应用程序,然后以不属于 xd.local\sales 的用户身份再次登录。启动受保护的资源,您会看到应用程序保护已启用。