AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 784615
Accepted
Daniel
Daniel
Asked: 2016-06-18 06:05:14 +0800 CST2016-06-18 06:05:14 +0800 CST 2016-06-18 06:05:14 +0800 CST

GPO 未能申请;原因:无法访问、为空或已禁用;服务器 2012 R2 和 Windows 10

  • 772

我有一个 Windows Server 2012 R2 域。

昨天,一台计算机(运行 Windows 10 Pro)的网络驱动器停止工作。

经过进一步调查 ( gpresult /h) 后,似乎所有组策略对象都因原因而失败Inaccessible, Empty, or Disabled。

我已经确认所有 GPO 仍然存在并且在(冗余和本地)域控制器上都启用。此外,在同一个域和 LAN 上还有 20 台其他机器绝对没有问题。

但是,我测试过的另一台计算机也出现了同样的问题!这是否意味着问题出在服务器上?

gpresult /r报告一个客户端从本地 DC1 获取 GPO,另一个从 DC2 获取 GPO。因此,这不是与特定 DC 相关的问题。

gpupdate /force什么都没解决(尽管它声称已应用了政策)。

我尝试删除本地策略的注册表项(按照本指南https://superuser.com/questions/379908/how-to-clear-or-remove-domain-applied-group-policy-settings-after-leaving-the -do ) 并重新启动 - 同样的问题。

我从 Microsoft ( https://support.microsoft.com/en-us/kb/2976965 ) 找到了这个支持页面,但它声称它仅适用于 Windows 7 或更早版本的客户端。

我所有的机器(服务器和客户端)都运行 64 位版本并且已经完全更新。为了确定,我已经重新启动了所有这些。

group-policy active-directory windows-10 windows-server-2012-r2
  • 1 1 个回答
  • 42258 Views

1 个回答

  • Voted
  1. Best Answer
    yagmoth555
    2016-06-18T07:07:20+08:002016-06-18T07:07:20+08:00

    检查补丁 joeqwerty链接。

    有一个重要的细节:

    已知的问题

    MS16-072 更改检索用户组策略的安全上下文。这种设计上的行为更改可保护客户的计算机免受安全漏洞的影响。在安装 MS16-072 之前,使用用户的安全上下文检索用户组策略。安装 MS16-072 后,使用机器安全上下文检索用户组策略。此问题适用于以下知识库文章:

    • 3159398 MS16-072:组策略安全更新说明:2016 年 6 月 14 日
    • 3163017 Windows 10 累积更新:2016 年 6 月 14 日
    • 3163018 Windows 10 版本 1511 和 Windows Server 2016 Technical Preview 4 的累积更新:2016 年 6 月 14 日
    • 3163016 Windows Server 2016 Technical Preview 5 的累积更新:2016 年 6 月 14 日

    症状

    所有用户组策略,包括那些已在用户帐户或安全组或两者上进行安全过滤的用户组策略,可能无法在加入域的计算机上应用。

    原因

    如果组策略对象缺少 Authenticated Users 组的读取权限,或者您正在使用安全筛选并且缺少域计算机组的读取权限,则可能会出现此问题。

    解析度

    要解决此问题,请使用组策略管理控制台 (GPMC.MSC) 并执行以下步骤之一:

    - 添加对组策略对象 (GPO) 具有读取权限的 Authenticated Users 组。
    - 如果您使用安全过滤,请添加具有读取权限的域计算机组。

    请参阅此链接部署 MS16-072,它解释了所有内容并提供了修复受影响 GPO 的脚本。该脚本将 Authenticated 用户读取权限添加到对 Authenticated 用户没有权限的所有 GPO。

    # Copyright (C) Microsoft Corporation. All rights reserved.
    
    $osver = [System.Environment]::OSVersion.Version
    $win7 = New-Object System.Version 6, 1, 7601, 0
    
    if($osver -lt $win7)
    {
        Write-Error "OS Version is not compatible for this script. Please run on Windows 7 or above"
        return
    }
    
    Try
    {
        Import-Module GroupPolicy
    }
    Catch
    {
        Write-Error "GP Management tools may not be installed on this machine. Script cannot run"
        return
    }
    
    $arrgpo = New-Object System.Collections.ArrayList
    
    foreach ($loopGPO in Get-GPO -All)
    {
        if ($loopGPO.User.Enabled)
        {
            $AuthPermissionsExists = Get-GPPermissions -Guid $loopGPO.Id -All | Select-Object -ExpandProperty Trustee | ? {$_.Name -eq "Authenticated Users"}
            If (!$AuthPermissionsExists)
            {
                $arrgpo.Add($loopGPO) | Out-Null
            }
        }
    }
    
    if($arrgpo.Count -eq 0)
    {
        echo "All Group Policy Objects grant access to 'Authenticated Users'"
        return
    }
    else
    {
        Write-Warning  "The following Group Policy Objects do not grant any permissions to the 'Authenticated Users' group:"
        foreach ($loopGPO in $arrgpo)
        {
            write-host "'$($loopgpo.DisplayName)'"
        }
    }
    
    $title = "Adjust GPO Permissions"
    $message = "The Group Policy Objects (GPOs) listed above do not have the Authenticated Users group added with any permissions. Group policies may fail to apply if the computer attempting to list the GPOs required to download does not have Read Permissions. Would you like to adjust the GPO permissions by adding Authenticated Users group Read permissions?"
    
    $yes = New-Object System.Management.Automation.Host.ChoiceDescription "&Yes", `
        "Adds Authenticated Users group to all user GPOs which don't have 'Read' permissions"
    $no = New-Object System.Management.Automation.Host.ChoiceDescription "&No", `
        "No Action will be taken. Some Group Policies may fail to apply"
    $options = [System.Management.Automation.Host.ChoiceDescription[]]($yes, $no)
    $result = $host.ui.PromptForChoice($title, $message, $options, 0)  
    $appliedgroup = $null
    switch ($result)
    {
        0 {$appliedgroup = "Authenticated Users"}
        1 {$appliedgroup = $null}
    }
    If($appliedgroup)
    {
        foreach($loopgpo in $arrgpo)
        {
            write-host "Adding 'Read' permissions for '$appliedgroup' to the GPO '$($loopgpo.DisplayName)'."
            Set-GPPermissions -Guid $loopgpo.Id -TargetName $appliedgroup -TargetType group -PermissionLevel GpoRead | Out-Null
        }
    }
    

    如果您喜欢设置域计算机的读取权限(就像我一样)而不是经过身份验证的用户,只需将其更改0 {$appliedgroup = "Authenticated Users"}为0 {$appliedgroup = "Domain Computers"}

    • 19

相关问题

  • 如何删除本地管理员权限?

  • Windows 中的安装权限管理

  • 如何通过 GPO 授予漫游用户帐户在 Windows Server 2003 上的安装权限?

  • 如何在 Windows 2003 的 ou 级别应用策略

  • 什么是 ADM 模板?

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve