Remove-SCSMConnector

Removes a connector from Service Manager.

Syntax

Remove-SCSMConnector
      [-Connector] <Connector[]>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-SCSMConnector cmdlet removes a connector from Service Manager.

Examples

Example 1: Removed enabled connectors by using a display name

PS C:\>Get-SCSMConnector | Where-Object { $_.displayname -eq "AD Connector" -and $_.enabled} | Remove-SCSMConnector

This command removes all connectors that are enabled and that are named AD Connector. The command uses the Get-SCSMConnector cmdlet to get all Service Manager connectors. The command passes the results to the Where-Object cmdlet, which passes on only those that meet the specified criteria. The current cmdlet removes those connectors.

Required Parameters

-Connector

Specifies the connector object that this cmdlet removes from the system.

Type:Connector[]
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
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.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.EnterpriseManagement.ServiceManager.Sdk.Connectors.Connector

You can pipe a Service Manager connector to the Connector parameter.

Outputs

None.

This cmdlet does not generate any output.