PowerShell Logo Small

Remove-ADReplicationSite



This is the built-in help made by Microsoft for the command 'Remove-ADReplicationSite', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 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

Deletes the specified replication site object from Active Directory.

SYNTAX


Remove-ADReplicationSite [-Identity] <ADReplicationSite> [-AuthType {Negotiate | Basic}] [-Credential <PSCredential>] [-Server <String>] [-Confirm] [-WhatIf]
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Remove-ADReplicationSite cmdlet deletes a specified replication site object from Active Directory. If domain controllers are no longer needed in a network location, you
can remove them from a site and then delete the site object. Before deleting the site, you must remove all domain controllers from the site either by removing them entirely
or by moving them to a new location.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/p/?linkid=291093
Get-ADReplicationSite
New-ADReplicationSite
Set-ADReplicationSite

REMARKS

<

Examples


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

PS C:\>Remove-ADReplicationSite -Identity Europe



This command removes the site with name Europe.




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

PS C:\>Get-ADReplicationSite -Filter {Description -eq "For testing only."} | Remove-ADReplicationSite



This command gets the sites that are for testing only and removes them.