Start-SCSMConnector
Initiates a synchronization of a Service Manager connector.
Syntax
Start-SCSMConnector
[-Connector] <Connector[]>
[-PassThru]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Start-SCSMConnector cmdlet initiates a synchronization of a Service Manager connector. You cannot initiate synchronization for a connector that is currently disabled.
Examples
Example 1: Start a connector synchronization
PS C:\>Get-SCSMConnector -DisplayName MyAD | Start-SCSMConnector
This command gets the connector with name MyAD by using the Get-SCSMConnector cmdlet. The command passes that result to the current cmdlet by using the pipeline operator. That cmdlet starts synchronization for that connector.
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 for which this cmdlet initiates synchronization.
Type: | Microsoft.EnterpriseManagement.ServiceManager.Sdk.Connectors.Connector[] |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PassThru
Indicates that this cmdlet returns the connector that it synchronized. You can pass this object to other cmdlets.
Type: | System.Management.Automation.SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
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 connector to the Connector parameter.
Outputs
None.
This cmdlet does not generate any output.