Remove-CMApplicationCatalogWebSitePoint

Remove-CMApplicationCatalogWebSitePoint

Removes a Configuration Manager Application Catalog website point.

Syntax

Parameter Set: SearchByNameMandatory
Remove-CMApplicationCatalogWebSitePoint -SiteCode <String> -SiteSystemServerName <String> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Parameter Set: SearchByValueMandatory
Remove-CMApplicationCatalogWebSitePoint -InputObject <IResultObject> [-Force] [-Confirm] [-WhatIf] [ <CommonParameters>]

Detailed Description

The Remove-CMApplicationCatalogWebSitePoint cmdlet removes an Application Catalog website point in Microsoft System Center 2012 Configuration Manager. This site system role supports the Application Catalog website and the Software Library.

You can specify a website point to remove by site code and name of the server that hosts the role, or you can use the Get-CMApplicationCatalogWebsitePoint cmdlet to get a website point to remove.

Parameters

-Force

Removes an Application Catalog website point without prompting you for confirmation. By default, the cmdlet prompts you for confirmation before it proceeds.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-InputObject<IResultObject>

Specifies an Application Catalog website point object. To obtain Application Catalog website point object, use the Get-CMApplicationCatalogWebsitePoint cmdlet.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SiteCode<String>

Specifies the site code for a Configuration Manager site.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-SiteSystemServerName<String>

Specifies the name of a server that hosts a site system role.

Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Confirm

Prompts you for confirmation before running the cmdlet.

Required?

false

Position?

named

Default Value

false

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

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 (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Remove an Application Catalog website point

This command removes an Application Catalog website point that belongs to the site that has the site code CM2. The computer named WesternACWP.Contoso.com hosts the point that the cmdlet removes.

PS C:\> Remove-CMApplicationCatalogWebsitePoint -SiteCode "CM2" -SiteSystemServerName "WesternACWP.Contoso.com" 

Example 2: Remove an Application Catalog website point by using a variable

This example removes an Application Catalog website point hosted by a specified computer in a specified site.

The first command uses the Get-CMApplicationCatalogWebsitePoint cmdlet to get an Application Catalog website point hosted by the computer named WesternACWP.Contoso.com in the site that has the site code CM2, and stores it in the $CMACWP variable.

The second command removes the Application Catalog website point stores in the $CMACWP variable. The command includes the Force parameter. Therefore, the command does not prompt you for confirmation.

PS C:\> $CMACWP= Get-CMApplicationCatalogWebsitePoint -SiteCode "CM2" -SiteSystemServerName"WesternACWP.Contoso.com" 
PS C:\>Remove-CMApplicationCatalogWebsitePoint -InputObject $CMACWP -Force

Add-CMApplicationCatalogWebsitePoint

Get-CMApplicationCatalogWebsitePoint