Remove-CMAddress
Applies To: System Center 2012 Configuration Manager SP1
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Remove-CMAddress
Removes a site address.
Syntax
Parameter Set: SearchBySiteCodeMandatory
Remove-CMAddress -DestinationSiteCode <String[]> -SourceSiteCode <String[]> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: SearchBySiteNameMandatory
Remove-CMAddress -DestinationSiteName <String[]> -SourceSiteName <String[]> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Get-CMAddress cmdlet removes a Microsoft System Center 2012 Configuration Manager site address.
For more information about System Center 2012 Configuration Manager addresses, see About the Site Address Account.
Parameters
-DestinationSiteCode<String[]>
Specifies an array of destination site codes.
Aliases |
DesSiteCode |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-DestinationSiteName<String[]>
Specifies an array of destination site names.
Aliases |
DesSiteName |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Force
Removes an address object without confirmation.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-SourceSiteCode<String[]>
Specifies an array of source site codes.
Aliases |
SiteCode |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-SourceSiteName<String[]>
Specifies an array of source site names.
Aliases |
SiteName |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
True (ByPropertyName) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before executing the command.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-WhatIf
Describes what would happen if you executed the command without actually executing the command.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters.
Examples
Example 1: Remove an address that is identified by using the destination site name
This command removes an address for a site server that has the destination site name CMAlaska.
PS C:\> Remove-CMAddress –DestinationSiteName "CMAlaska"