PowerShell Logo Small

Get-ADReplicationSubnet



This is the built-in help made by Microsoft for the command 'Get-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

Returns a specific Active Directory subnet or a set of AD subnets based on a specified filter.

SYNTAX


Get-ADReplicationSubnet [-AuthType <ADAuthType>] [-Credential <PSCredential>] [-Properties <String[]>] [-Server <String>] -Filter <String>
[<CommonParameters>]
Get-ADReplicationSubnet [-Identity] <ADReplicationSubnet> [-AuthType <ADAuthType>] [-Credential <PSCredential>] [-Properties <String[]>]
[-Server <String>] [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Get-ADReplicationSubnet cmdlet returns a specific Active Directory subnet or a set of AD subnets based on a specified filter. 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=216360
New-ADReplicationSubnet
Remove-ADReplicationSubnet
Set-ADReplicationSubnet

REMARKS

<

Examples


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

C:\PS>Get-ADReplicationSubnet -Filter *



Description

-----------

Get all the subnets.




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

C:\PS>Get-ADReplicationSubnet -Filter {Location -like "*Japan"}



Description

-----------

Get all the subnets in Japan.




-------------------------- EXAMPLE 3 --------------------------

C:\PS>Get-ADReplicationSubnet "10.0.0.0/25"



Description

-----------

Get the subnet with name '10.0.0.0/25'.




-------------------------- EXAMPLE 4 --------------------------

C:\PS>Get-ADReplicationSubnet "10.0.0.0/25" -Properties *



Description

-----------

Get all the properties of the subnet with name '10.0.0.0/25'.