配置管理器 Windows服务器 2016 活动目录 Schema extend. We make it with 图形用户界面 和 电源外壳.
带图形用户界面:
- 山 DVD 或者 *.iso with SCCM distributive. 前往 <驱动信>\ SMSSETUP\BIN\X64\ and execute extadsch.exe. After running check your C:\ root for file ExtADSch.log, open it, and make sure that the operation is complete successfully;
2. Find in all programs ADSI Edit 并运行它. 鼠标右键 click and select Connect to;
3. Leave by default, 点击 好的;
4. 鼠标右键 单击 CN=System 并选择 New\Object;
5. 选择 Container 然后单击 下一个;
6. 在 价值 进入 System Management, 点击 下一个;
7. 点击 结束;
8. 鼠标右键 click on the newly created container and select 特性;
9. 前往 the Security tab and click 添加;
10. 在 Object Types 选择 电脑, enter your SCCM server name and click 好的;
11. 放 完全控制 然后单击 好的;
By PowerShell:
跑步 电源外壳 具有管理员权限;
To run extadsch.exe:
#Extend Schema
Start-Process -Filepath ('D:\SMSSETUP\BIN\X64\extadsch.exe') -Wait
Start-Sleep 30
#Confirm Schema Extension
$schema = [DirectoryServices.ActiveDirectory.ActiveDirectorySchema]::GetCurrentSchema()
start-sleep 5
$schema.RefreshSchema()
$schema.FindClass("mSSMSSite")
To create container and grant permissions:
Import-Module ActiveDirectory
$root = (Get-ADRootDSE).defaultNamingContext
if (!([adsi]::Exists("LDAP://CN=System Management,CN=System,$root"))) {
$smcontainer = New-ADObject -Type Container -name "System Management" -Path "CN=System,$root" -Passthru
}
$acl = get-acl "ad:CN=System Management,CN=System,$root"
$objGroup = Get-ADComputer -filter {Name -eq "<Your SCCM Server Name>"}
$All = [System.DirectoryServices.ActiveDirectorySecurityInheritance]::SelfAndChildren
$ace = new-object System.DirectoryServices.ActiveDirectoryAccessRule $objGroup.SID, "GenericAll", "Allow", $All
$acl.AddAccessRule($ace)
Set-acl -aclobject $acl "ad:CN=System Management,CN=System,$root"