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.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:System.Management.Automation.SwitchParameter
Aliases:cf
Position:Named
Default value:False
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Connector

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

Type:Microsoft.EnterpriseManagement.ServiceManager.Sdk.Connectors.Connector[]
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-WhatIf

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

Type:System.Management.Automation.SwitchParameter
Aliases:wi
Position:Named
Default value:False
Required: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.