Managing sites and subnets

Sites and subnets play a critical role in controlling authentication traffic and replication traffic in the Active Directory environment. In the same way we managed several logical components of Active Directory, these physical components also can be managed. However, there are no cmdlets available directly in Active Directory module to create and modify sites and subnets such as New-ADSite, Set-ADSite, and so on. We need to write a piece of code to query these objects using the Get-ADObject cmdlet and modify using the Set-ADObject cmdlet.

Querying sites and subnets

Sites and subnets are part of Configuration Naming Context (CNC) in Active Directory. By default, the Active Directory cmdlets query the domain naming context ...

Get Active Directory with PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.