Share via


Remove-SCSMConnector

Removes a connector from Service Manager.

Syntax

Default (Default)

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.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Connector

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

Parameter properties

Type:

Microsoft.EnterpriseManagement.ServiceManager.Sdk.Connectors.Connector[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

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

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:False
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

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.