Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

GPO deployment fails on sub-domains

未关闭 适合新手
#60 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
powershell

调研方向

从 New-TierModelGptTmplContent.ps1 中 Phase 3 的 forestRootOnly 主体处理开始。跟踪当前域的识别方式,然后验证在子域和林根上的部署;当 forestRootOnly 主体仅针对根域包含,并且子域部署不再失败时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

Phase 3 of the GPO deployment fails on sub-domains when trying to resolve forestroot-only principals, i.e. Enterprise Admins.

In New-TierModelGptTmplContent.ps1 forestroot-only principals are always added, even if the current domain is not the root domain.

# Add forest root only groups
if ($principalsObj.PSObject.Properties['forestRootOnly'] -and $principalsObj.forestRootOnly) {
    $allPrincipals += $principalsObj.forestRootOnly
}

Instead these principals should only be added if the current domain is the root domain.

主要语言
PowerShell
星标
410
派生
56
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/ActiveDirectoryTierModel 的其他 Issue

查看 microsoft/ActiveDirectoryTierModel 的全部 Issue

相似的 Issue

更多 DevOps Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。