Manager de configurare Windows Server 2016 Active Directory Schema extend. We make it with GUI şi PowerShell.
With GUI:
- Mount DVD or *.iso with SCCM distributive. Du-te la <drive letter>\ 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 and run it. Butonul din dreapta al mouse-ului click and select Connect to;
3. Leave by default, clic Bine;
4. Butonul din dreapta al mouse-ului click at CN=System and select New\Object;
5. Choose Container și faceți clic Next;
6. In Value enter System Management, clic Next;
7. Click Finish;
8. Butonul din dreapta al mouse-ului click on the newly created container and select Proprietăți;
9. Du-te la the Security tab and click Add;
10. In Object Types selecta Computers, enter your SCCM server name and click Bine;
11. Set Full control și faceți clic Bine;
By PowerShell:
Fugi PowerShell cu drepturi de administrator;
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"