Servidor Windows do Gerenciador de Configuração 2016 Active Directory Schema extend. We make it with GUI and PowerShell.
Com GUI:
- Mount DVD ou *.iso with SCCM distributive. Go to <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 e executá-lo. Botão direito do mouse click and select Connect to;
3. Sair por padrão, clique OK;
4. Botão direito do mouse click at CN=System e selecione New\Object;
5. Choose Container e clique Próximo;
6. Em Valor digitar System Management, clique Próximo;
7. Clique Terminar;
8. Botão direito do mouse click on the newly created container and select Propriedades;
9. Go to the Security tab and click Adicionar;
10. Em Object Types selecione Computers, enter your SCCM server name and click OK;
11. Definir Full control e clique OK;
By PowerShell:
Execute o PowerShell com direitos de administrador;
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"