PowerShell Logo Small

Set-ADReplicationSubnet



This is the built-in help made by Microsoft for the command 'Set-ADReplicationSubnet', in PowerShell version 3 - as retrieved from Windows version 'Microsoft Windows Server 2012 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Sets the properties of an Active Directory replication subnet object.

SYNTAX


Set-ADReplicationSubnet [-Identity] <ADReplicationSubnet> [-Add <Hashtable>] [-AuthType <ADAuthType>] [-Clear <String[]>] [-Credential
<PSCredential>] [-Description <String>] [-Location <String>] [-PassThru [<SwitchParameter>]] [-Remove <Hashtable>] [-Replace <Hashtable>]
[-Server <String>] [-Site <ADReplicationSite>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]
Set-ADReplicationSubnet [-AuthType <ADAuthType>] [-Credential <PSCredential>] [-Instance <ADReplicationSubnet>] [-PassThru
[<SwitchParameter>]] [-Server <String>] [-Confirm [<SwitchParameter>]] [-WhatIf [<SwitchParameter>]] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Set-ADReplicationSubnet cmdlet sets the properties of an Active Directory replication subnet object. Subnet objects (class subnet) define
network subnets in Active Directory. A network subnet is a segment of a TCP/IP network to which a set of logical IP addresses is assigned.
Subnets group computers in a way that identifies their physical proximity on the network. Subnet objects in Active Directory are used to map
computers to sites.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=216417
Get-ADReplicationSubnet
New-ADReplicationSubnet
Remove-ADReplicationSubnet

REMARKS

<

Examples


-------------------------- EXAMPLE 1 --------------------------

C:\PS>Set-ADReplicationSubnet "10.0.0.12/22" -Site Asia -Location "Tokyo,Japan"



Description

-----------

Set the properties of the subnet named '10.0.0.12/22'.




-------------------------- EXAMPLE 2 --------------------------

C:\PS>Get-ADReplicationSubnet -Filter {Location -like "*Japan"} -Properties Site | % {Set-ADReplicationSubnet $_ -Site Asia}



Description

-----------

Get all the subnets in the directory that are in Japan, and set 'Asia' as their associated site.