Microsoft Entra Connect: ADSync PowerShell Reference

The following documentation provides reference information for the ADSync.psm1 PowerShell module that is included with Microsoft Entra Connect.

Add-ADSyncADDSConnectorAccount

概要

This cmdlet resets the password for the service account and updates it both in Microsoft Entra ID and in the sync engine.

SYNTAX

byIdentifier

   Add-ADSyncADDSConnectorAccount [-Identifier] <Guid> [-EACredential <PSCredential>] [<CommonParameters>]

byName

    Add-ADSyncADDSConnectorAccount [-Name] <String> [-EACredential <PSCredential>] [<CommonParameters>]

描述

This cmdlet resets the password for the service account and updates it both in Microsoft Entra ID and in the sync engine.

例子

示例 1

  PS C:\> Add-ADSyncADDSConnectorAccount -Name contoso.com -EACredential $EAcredentials

Resets the password for the service account connected to contoso.com.

PARAMETERS

-EACredential

Credentials for an Enterprise Administrator account in the Active Directory.

  Type: PSCredential
  Parameter Sets: (All)
  Aliases:

  Required: False
  Position: Named
  Default value: None
  Accept pipeline input: False
  Accept wildcard characters: False

-Identifier

Identifier of the connector whose service account's password needs to be reset.

  Type: Guid
  Parameter Sets: byIdentifier
  Aliases:

  Required: True
  Position: 0
  Default value: None
  Accept pipeline input: True (ByValue)
  Accept wildcard characters: False

-Name

Name of the connector.

  Type: String
  Parameter Sets: byName
  Aliases:

  Required: True
  Position: 1
  Default value: None
  Accept pipeline input: True (ByValue)
  Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

System.Guid

System.String

输出

System.Object

Disable-ADSyncExportDeletionThreshold

概要

Disables feature for deletion threshold at Export stage.

SYNTAX

   Disable-ADSyncExportDeletionThreshold [[-AADCredential] <PSCredential>] [-WhatIf] [-Confirm]
    [<CommonParameters>]

描述

Disables feature for deletion threshold at Export stage.

例子

示例 1

    PS C:\> Disable-ADSyncExportDeletionThreshold -AADCredential $aadCreds

Uses the provided Microsoft Entra Credentials to disable the feature for export deletion threshold.

PARAMETERS

-AADCredential

The Microsoft Entra credential.

   Type: PSCredential
   Parameter Sets: (All)
   Aliases:

   Required: False
   Position: 1
   Default value: None
   Accept pipeline input: True (ByPropertyName)
   Accept wildcard characters: False

-Confirm

Parameter switch for prompting for confirmation.

    Type: SwitchParameter
    Parameter Sets: (All)
    Aliases: cf

    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False

-WhatIf

显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。

    Type: SwitchParameter
    Parameter Sets: (All)
    Aliases: wi

    Required: False
    Position: Named
    Default value: None
    Accept pipeline input: False
    Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

System.Management.Automation.PSCredential

输出

System.Object

Enable-ADSyncExportDeletionThreshold

概要

Enables Export Deletion threshold feature and sets a value for the threshold.

SYNTAX

Enable-ADSyncExportDeletionThreshold [-DeletionThreshold] <UInt32> [[-AADCredential] <PSCredential>] [-WhatIf]
[-Confirm] [<CommonParameters>]

描述

Enables Export Deletion threshold feature and sets a value for the threshold.

例子

示例 1

PS C:\> Enable-ADSyncExportDeletionThreshold -DeletionThreshold 777 -AADCredential $aadCreds

Enables export deletion threshold feature and sets the deletion threshold to 777.

PARAMETERS

-AADCredential

The Microsoft Entra credential.

Type: PSCredential
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Confirm

在运行 cmdlet 之前,提示你进行确认。

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DeletionThreshold

The deletion threshold.

Type: UInt32
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-WhatIf

显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

System.UInt32

System.Management.Automation.PSCredential

输出

System.Object

Get-ADSyncAutoUpgrade

概要

Gets the status of AutoUpgrade on your installation.

SYNTAX

Get-ADSyncAutoUpgrade [-Detail] [<CommonParameters>]

描述

Gets the status of AutoUpgrade on your installation.

例子

示例 1

PS C:\> Get-ADSyncAutoUpgrade -Detail

Returns the AutoUpgrade status of the installation and shows the suspension reason if AutoUpgrade is suspended.

PARAMETERS

-Detail

If the AutoUpgrade state is suspended, using this parameter shows the suspension reason.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

没有

输出

System.Object

Get-ADSyncCSObject

概要

Gets the specified Connector Space object.

SYNTAX

SearchByIdentifier

Get-ADSyncCSObject [-Identifier] <Guid> [<CommonParameters>]

SearchByConnectorIdentifierDistinguishedName

Get-ADSyncCSObject [-ConnectorIdentifier] <Guid> [-DistinguishedName] <String> [-SkipDNValidation] [-Transient]
[<CommonParameters>]

SearchByConnectorIdentifier

Get-ADSyncCSObject [-ConnectorIdentifier] <Guid> [-Transient] [-StartIndex <Int32>] [-MaxResultCount <Int32>]
[<CommonParameters>]

SearchByConnectorNameDistinguishedName

Get-ADSyncCSObject [-ConnectorName] <String> [-DistinguishedName] <String> [-SkipDNValidation] [-Transient]
[<CommonParameters>]

SearchByConnectorName

Get-ADSyncCSObject [-ConnectorName] <String> [-Transient] [-StartIndex <Int32>] [-MaxResultCount <Int32>]
[<CommonParameters>]

描述

Gets the specified Connector Space object.

例子

示例 1

PS C:\> Get-ADSyncCSObject -ConnectorName "contoso.com" -DistinguishedName "CN=fabrikam,CN=Users,DC=contoso,DC=com"

Gets the CS object for the user fabrikam in the contoso.com domain.

PARAMETERS

-ConnectorIdentifier

The identifier of the connector.

Type: Guid
Parameter Sets: SearchByConnectorIdentifierDistinguishedName, SearchByConnectorIdentifier 
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ConnectorName

The name of the connector.

Type: String
Parameter Sets: SearchByConnectorNameDistinguishedName, SearchByConnectorName
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DistinguishedName

The distinguished name of the connector space object.

Type: String
Parameter Sets: SearchByConnectorIdentifierDistinguishedName, SearchByConnectorNameDistinguishedName
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Identifier

The identifier of the connector space object.

Type: Guid
Parameter Sets: SearchByIdentifier
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MaxResultCount

The max count of the result set.

Type: Int32
Parameter Sets: SearchByConnectorIdentifier, SearchByConnectorName
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SkipDNValidation

Parameter Switch to Skip DN validation.

Type: SwitchParameter
Parameter Sets: SearchByConnectorIdentifierDistinguishedName, SearchByConnectorNameDistinguishedName
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-StartIndex

The start index to return the count from.

Type: Int32
Parameter Sets: SearchByConnectorIdentifier, SearchByConnectorName
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Transient

Parameter Switch to get Transient CS objects.

Type: SwitchParameter
Parameter Sets: SearchByConnectorIdentifierDistinguishedName, SearchByConnectorIdentifier, SearchByConnectorNameDistinguishedName, SearchByConnectorName
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

没有

输出

System.Object

Get-ADSyncCSObjectLog

概要

Gets connector space object log entries.

SYNTAX

Get-ADSyncCSObjectLog [-Identifier] <Guid> [-Count] <UInt32> [<CommonParameters>]

描述

Gets connector space object log entries.

例子

示例 1

PS C:\> Get-ADSyncCSObjectLog -Identifier "00000000-0000-0000-0000-000000000000" -Count 1

Returns one object with the specified identifier.

PARAMETERS

-Count

Expected maximum number of connector space object log entries to retrieve.

Type: UInt32
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Identifier

The connector space object identifier.

Type: Guid
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

没有

输出

System.Object

Get-ADSyncDatabaseConfiguration

概要

Gets the configuration of the ADSync Database.

SYNTAX

Get-ADSyncDatabaseConfiguration [<CommonParameters>]

描述

Gets the configuration of the ADSync Database.

例子

示例 1

PS C:\> Get-ADSyncDatabaseConfiguration

Gets the configuration of the ADSync Database.

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

没有

输出

System.Object

Get-ADSyncExportDeletionThreshold

概要

Gets the export deletion threshold from Microsoft Entra ID.

SYNTAX

Get-ADSyncExportDeletionThreshold [[-AADCredential] <PSCredential>] [-WhatIf] [-Confirm] [<CommonParameters>]

描述

Gets the export deletion threshold from Microsoft Entra ID.

例子

示例 1

PS C:\> Get-ADSyncExportDeletionThreshold -AADCredential $aadCreds

Gets the export deletion threshold from Microsoft Entra ID using the specified Microsoft Entra credentials.

PARAMETERS

-AADCredential

The Microsoft Entra credential.

Type: PSCredential
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Confirm

在运行 cmdlet 之前,提示你进行确认。

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

System.Management.Automation.PSCredential

输出

System.Object

Get-ADSyncMVObject

概要

Gets a metaverse object.

SYNTAX

Get-ADSyncMVObject -Identifier <Guid> [<CommonParameters>]

描述

Gets a metaverse object.

例子

示例 1

PS C:\> Get-ADSyncMVObject -Identifier "00000000-0000-0000-0000-000000000000"

Gets metaverse object with the specified identifier.

PARAMETERS

-Identifier

The identifier of the metaverse object.

Type: Guid
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

没有

输出

System.Object

Get-ADSyncRunProfileResult

概要

Processes the inputs from the client and retrieves the run profile result(s).

SYNTAX

Get-ADSyncRunProfileResult [-RunHistoryId <Guid>] [-ConnectorId <Guid>] [-RunProfileId <Guid>]
[-RunNumber <Int32>] [-NumberRequested <Int32>] [-RunStepDetails] [-StepNumber <Int32>] [-WhatIf] [-Confirm]
[<CommonParameters>]

描述

Processes the inputs from the client and retrieves the run profile result(s).

例子

示例 1

PS C:\> Get-ADSyncRunProfileResult -ConnectorId "00000000-0000-0000-0000-000000000000"

Retrieves all sync run profile results for the specified connector.

PARAMETERS

-Confirm

在运行 cmdlet 之前,提示你进行确认。

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ConnectorId

The connector identifier.

Type: Guid
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-NumberRequested

The maximum number of returns.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RunHistoryId

The identifier of a specific run.

Type: Guid
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RunNumber

The run number of a specific run.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RunProfileId

The run profile identifier of a specific run.

Type: Guid
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RunStepDetails

Parameter switch for Run Step Details.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-StepNumber

Filters by step number.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

没有

输出

System.Object

Get-ADSyncRunStepResult

概要

Gets the AD Sync Run Step Result.

SYNTAX

Get-ADSyncRunStepResult [-RunHistoryId <Guid>] [-StepHistoryId <Guid>] [-First] [-StepNumber <Int32>] [-WhatIf]
[-Confirm] [<CommonParameters>]

描述

Gets the AD Sync Run Step Result.

例子

示例 1

PS C:\> Get-ADSyncRunStepResult -RunHistoryId "00000000-0000-0000-0000-000000000000"

Gets the AD Sync Run Step Result of the specified run.

PARAMETERS

-Confirm

在运行 cmdlet 之前,提示你进行确认。

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-First

Parameter switch for getting only the first object.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RunHistoryId

The ID of a specific run.

Type: Guid
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-StepHistoryId

The ID of a specific run step.

Type: Guid
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-StepNumber

The step number.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

没有

输出

System.Object

Get-ADSyncScheduler

概要

Gets the current synchronization cycle settings for the sync scheduler.

SYNTAX

Get-ADSyncScheduler [<CommonParameters>]

描述

Gets the current synchronization cycle settings for the sync scheduler.

例子

示例 1

PS C:\> Get-ADSyncScheduler

Gets the current synchronization cycle settings for the sync scheduler.

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

没有

输出

System.Object

Get-ADSyncSchedulerConnectorOverride

概要

Gets the AD Sync Scheduler override values for the specified connector(s).

SYNTAX

Get-ADSyncSchedulerConnectorOverride [-ConnectorIdentifier <Guid>] [-ConnectorName <String>]
[<CommonParameters>]

描述

Gets the AD Sync Scheduler override values for the specified connector(s).

例子

示例 1

PS C:\> Get-ADSyncSchedulerConnectorOverride -ConnectorName "contoso.com"

Gets the AD Sync Scheduler override values for the 'contoso.com' connector.

示例 2

PS C:\> Get-ADSyncSchedulerConnectorOverride

Gets all AD Sync Scheduler override values.

PARAMETERS

-ConnectorIdentifier

The connector identifier.

Type: Guid
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ConnectorName

The connector name.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

没有

输出

System.Object

Invoke-ADSyncCSObjectPasswordHashSync

概要

Synchronize password hash for the given AD connector space object.

SYNTAX

SearchByDistinguishedName

Invoke-ADSyncCSObjectPasswordHashSync [-ConnectorName] <String> [-DistinguishedName] <String>
[<CommonParameters>]

SearchByIdentifier

Invoke-ADSyncCSObjectPasswordHashSync [-Identifier] <Guid> [<CommonParameters>]

CSObject

Invoke-ADSyncCSObjectPasswordHashSync [-CsObject] <CsObject> [<CommonParameters>]

描述

Synchronize password hash for the given AD connector space object.

例子

示例 1

PS C:\> Invoke-ADSyncCSObjectPasswordHashSync -ConnectorName "contoso.com" -DistinguishedName "CN=fabrikam,CN=Users,DN=contoso,DN=com"

Synchronizes password hash for the specified object.

PARAMETERS

-ConnectorName

The name of the connector.

Type: String
Parameter Sets: SearchByDistinguishedName
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-CsObject

Connector space object.

Type: CsObject
Parameter Sets: CSObject
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DistinguishedName

Distinguished Name of the connector space object.

Type: String
Parameter Sets: SearchByDistinguishedName
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Identifier

The identifier of the connector space object.

Type: Guid
Parameter Sets: SearchByIdentifier
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

没有

输出

System.Object

Invoke-ADSyncRunProfile

概要

Invokes a specific run profile.

SYNTAX

ConnectorName

Invoke-ADSyncRunProfile -ConnectorName <String> -RunProfileName <String> [-Resume] [<CommonParameters>]

ConnectorIdentifier

Invoke-ADSyncRunProfile -ConnectorIdentifier <Guid> -RunProfileName <String> [-Resume] [<CommonParameters>]

描述

Invokes a specific run profile.

例子

示例 1

PS C:\> Invoke-ADSyncRunProfile -ConnectorName "contoso.com" -RunProfileName Export

Invokes an export on the 'contoso.com' connector.

PARAMETERS

-ConnectorIdentifier

Identifier of the Connector.

Type: Guid
Parameter Sets: ConnectorIdentifier
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-ConnectorName

Name of the Connector.

Type: String
Parameter Sets: ConnectorName
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Resume

Parameter switch to attempt to resume a previously stalled/half-finished RunProfile.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-RunProfileName

Name of the run profile to invoke on the selected Connector.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

System.String

System.Guid

输出

System.Object

Remove-ADSyncAADServiceAccount

概要

Deletes an/all existing Microsoft Entra service account(s) in the Microsoft Entra tenant (associated with the specified credentials).

SYNTAX

ServiceAccount

Remove-ADSyncAADServiceAccount [-AADCredential] <PSCredential> [-Name] <String> [-WhatIf] [-Confirm]
[<CommonParameters>]

ServicePrincipal

Remove-ADSyncAADServiceAccount [-ServicePrincipal] [-WhatIf] [-Confirm] [<CommonParameters>]

描述

Deletes an/all existing Microsoft Entra service account(s) in the Microsoft Entra tenant (associated with the specified credentials).

例子

示例 1

PS C:\> Remove-ADSyncAADServiceAccount -AADCredential $aadcreds -Name contoso.com

Deletes all existing Microsoft Entra service accounts in contoso.com.

PARAMETERS

-AADCredential

The Microsoft Entra credential.

Type: PSCredential
Parameter Sets: ServiceAccount
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-Confirm

在运行 cmdlet 之前,提示你进行确认。

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Name

The name of the account.

Type: String
Parameter Sets: ServiceAccount
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-ServicePrincipal

The service principal of the account.

Type: SwitchParameter
Parameter Sets: ServicePrincipal
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: True (ByPropertyName)
Accept wildcard characters: False

-WhatIf

显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

System.Management.Automation.PSCredential

System.String

System.Management.Automation.SwitchParameter

输出

System.Object

Set-ADSyncAutoUpgrade

概要

Changes the AutoUpgrade state on your installation between Enabled and Disabled.

SYNTAX

Set-ADSyncAutoUpgrade [-AutoUpgradeState] <AutoUpgradeConfigurationState> [[-SuspensionReason] <String>]
[<CommonParameters>]

描述

Sets the AutoUpgrade state on your installation. This cmdlet should only be used to change AutoUpgrade state between Enabled and Disabled. Only the system should set the state to Suspended.

例子

示例 1

PS C:\> Set-ADSyncAutoUpgrade -AutoUpgradeState Enabled

Sets the AutoUpgrade state to Enabled.

PARAMETERS

-AutoUpgradeState

The AtuoUpgrade state. Accepted values: Suspended, Enabled, Disabled.

Type: AutoUpgradeConfigurationState
Parameter Sets: (All)
Aliases:
Accepted values: Suspended, Enabled, Disabled

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SuspensionReason

The suspension reason. Only the system should set the AutoUpgrade state to suspended.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

没有

输出

System.Object

Set-ADSyncScheduler

概要

Sets the current synchronization cycle settings for the sync scheduler.

SYNTAX

Set-ADSyncScheduler [[-CustomizedSyncCycleInterval] <TimeSpan>] [[-SyncCycleEnabled] <Boolean>]
[[-NextSyncCyclePolicyType] <SynchronizationPolicyType>] [[-PurgeRunHistoryInterval] <TimeSpan>]
[[-MaintenanceEnabled] <Boolean>] [[-SchedulerSuspended] <Boolean>] [-Force] [<CommonParameters>]

描述

Sets the current synchronization cycle settings for the sync scheduler.

例子

示例 1

PS C:\> Set-ADSyncScheduler -SyncCycleEnabled $true

Sets the current synchronization cycle setting for SyncCycleEnabled to True.

PARAMETERS

-CustomizedSyncCycleInterval

Please specify the timespan value for custom sync interval you want to set. If you want to run on lowest allowed setting, please set this parameter to null.

Type: TimeSpan
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Force

Parameter switch for forcing the setting of a value.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: 6
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-MaintenanceEnabled

Parameter for setting MaintenanceEnabled.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-NextSyncCyclePolicyType

Parameter for setting NextSyncCyclePolicyType. Accepted values: Unspecified, Delta, Initial.

Type: SynchronizationPolicyType
Parameter Sets: (All)
Aliases:
Accepted values: Unspecified, Delta, Initial

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-PurgeRunHistoryInterval

Parameter for setting PurgeRunHistoryInterval.

Type: TimeSpan
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-SchedulerSuspended

Parameter for setting SchedulerSuspended.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 5
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-SyncCycleEnabled

Parameter for setting SyncCycleEnabled.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

System.Nullable`1[[System.TimeSpan, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

System.Nullable`1[[Microsoft.IdentityManagement.PowerShell.ObjectModel.SynchronizationPolicyType, Microsoft.IdentityManagement.PowerShell.ObjectModel, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]

System.Management.Automation.SwitchParameter

输出

System.Object

Set-ADSyncSchedulerConnectorOverride

概要

Sets the current synchronization cycle settings for the sync scheduler.

SYNTAX

ConnectorIdentifier

Set-ADSyncSchedulerConnectorOverride -ConnectorIdentifier <Guid> [-FullImportRequired <Boolean>]
[-FullSyncRequired <Boolean>] [<CommonParameters>]

ConnectorName

Set-ADSyncSchedulerConnectorOverride -ConnectorName <String> [-FullImportRequired <Boolean>]
[-FullSyncRequired <Boolean>] [<CommonParameters>]

描述

Sets the current synchronization cycle settings for the sync scheduler.

例子

示例 1

PS C:\> Set-ADSyncSchedulerConnectorOverride -Connectorname "contoso.com" -FullImportRequired $true
-FullSyncRequired $false

Sets the synchronization cycle settings for the 'contoso.com' connector to require full import and to not require full sync.

PARAMETERS

-ConnectorIdentifier

The connector identifier.

Type: Guid
Parameter Sets: ConnectorIdentifier
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-ConnectorName

The connector name.

Type: String
Parameter Sets: ConnectorName
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-FullImportRequired

Set as true to require full import on the next cycle.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-FullSyncRequired

Set as true to require full sync on the next cycle.

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

System.Guid

System.String

System.Nullable`1[[System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]

输出

System.Object

Start-ADSyncPurgeRunHistory

概要

Cmdlet to purge run history older than specified timespan.

SYNTAX

online

Start-ADSyncPurgeRunHistory [[-PurgeRunHistoryInterval]  <TimeSpan>] [<CommonParameters>]

离线

Start-ADSyncPurgeRunHistory [-Offline] [<CommonParameters>]

描述

Cmdlet to purge run history older than specified timespan.

例子

示例 1

PS C:\> Start-ADSyncPurgeRunHistory -PurgeRunHistoryInterval (New-Timespan -Hours 5)

Purges all run history older than 5 hours.

PARAMETERS

-Offline

Purges all run history from the database while the service is offline.

Type: SwitchParameter
Parameter Sets: offline
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PurgeRunHistoryInterval

Interval for which history to preserve.

Type: TimeSpan
Parameter Sets: online
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

System.TimeSpan

输出

System.Object

Start-ADSyncSyncCycle

概要

Triggers a synchronization cycle.

SYNTAX

Start-ADSyncSyncCycle [[-PolicyType] <SynchronizationPolicyType>] [[-InteractiveMode] <Boolean>]
[<CommonParameters>]

描述

Triggers a synchronization cycle.

例子

示例 1

PS C:\> Start-ADSyncSyncCycle -PolicyType Initial

Triggers a synchronization cycle with an Initial policy type.

PARAMETERS

-InteractiveMode

Differentiates between interactive (command line) mode and script/code mode (calls from other code).

Type: Boolean
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-PolicyType

The policy type to run. Accepted values: Unspecified, Delta, Initial.

Type: SynchronizationPolicyType
Parameter Sets: (All)
Aliases:
Accepted values: Unspecified, Delta, Initial

Required: False
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

System.Nullable`1[[Microsoft.IdentityManagement.PowerShell.ObjectModel.SynchronizationPolicyType, Microsoft.IdentityManagement.PowerShell.ObjectModel, Version=1.4.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]

System.Boolean

输出

System.Object

Stop-ADSyncRunProfile

概要

Finds and stops all or specified busy connectors.

SYNTAX

Stop-ADSyncRunProfile [[-ConnectorName] <String>] [<CommonParameters>]

描述

Finds and stops all or specified busy connectors.

例子

示例 1

PS C:\> Stop-ADSyncRunProfile -ConnectorName "contoso.com"

Stops any running synchronization on 'contoso.com'.

PARAMETERS

-ConnectorName

Name of the Connector. If this is not given, then all busy connectors will be stopped.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

没有

输出

System.Object

Stop-ADSyncSyncCycle

概要

Signals the server to stop the currently running sync cycle.

SYNTAX

Stop-ADSyncSyncCycle [<CommonParameters>]

描述

Signals the server to stop the currently running sync cycle.

例子

示例 1

PS C:\> Stop-ADSyncSyncCycle

Signals the server to stop the currently running sync cycle.

PARAMETERS

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

没有

输出

System.Object

Sync-ADSyncCSObject

概要

Runs sync preview on connector space object.

SYNTAX

ConnectorName_ObjectDN

Sync-ADSyncCSObject -ConnectorName <String> -DistinguishedName <String> [-Commit] [<CommonParameters>]

ConnectorIdentifier_ObjectDN

Sync-ADSyncCSObject -ConnectorIdentifier <Guid> -DistinguishedName <String> [-Commit] [<CommonParameters>]

ObjectIdentifier

Sync-ADSyncCSObject -Identifier <Guid> [-Commit] [<CommonParameters>]

描述

Runs sync preview on connector space object.

例子

示例 1

PS C:\> Sync-ADSyncCSObject -ConnectorName "contoso.com" -DistinguishedName "CN=fabrikam,CN=Users,DC=contoso,DC=com"

Returns a sync preview for the specified object.

PARAMETERS

-Commit

Parameter Switch for commit.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ConnectorIdentifier

The identifier of the connector.

Type: Guid
Parameter Sets: ConnectorIdentifier_ObjectDN
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ConnectorName

The name of the connector.

Type: String
Parameter Sets: ConnectorName_ObjectDN
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DistinguishedName

Distinguished Name of the connector space object.

Type: String
Parameter Sets: ConnectorName_ObjectDN, ConnectorIdentifier_ObjectDN
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Identifier

The identifier of the connector space object.

Type: Guid
Parameter Sets: ObjectIdentifier
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

没有

输出

System.Object

Test-AdSyncAzureServiceConnectivity

概要

Investigates and identifies connectivity issues to Microsoft Entra ID.

SYNTAX

ByEnvironment

Test-AdSyncAzureServiceConnectivity [-AzureEnvironment] <Identifier> [[-Service] <AzureService>] [-CurrentUser]
[<CommonParameters>]

ByTenantName

Test-AdSyncAzureServiceConnectivity [-Domain] <String> [[-Service] <AzureService>] [-CurrentUser]
[<CommonParameters>]

描述

Investigates and identifies connectivity issues to Microsoft Entra ID.

例子

示例 1

PS C:\> Test-AdSyncAzureServiceConnectivity -AzureEnvironment Worldwide -Service SecurityTokenService -CurrentUser

Returns "True" if there are no connectivity issues.

PARAMETERS

-AzureEnvironment

Azure environment to test. Accepted values: Worldwide, China, UsGov, Germany, AzureUSGovernmentCloud, AzureUSGovernmentCloud2, AzureUSGovernmentCloud3, PreProduction, OneBox, Default.

Type: Identifier
Parameter Sets: ByEnvironment
Aliases:
Accepted values: Worldwide, China, UsGov, Germany, AzureUSGovernmentCloud, AzureUSGovernmentCloud2, AzureUSGovernmentCloud3, PreProduction, OneBox, Default

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-CurrentUser

The user running the cmdlet.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Domain

The domain whose connectivity is being tested.

Type: String
Parameter Sets: ByTenantName
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Service

The service whose connectivity is being tested.

Type: AzureService
Parameter Sets: (All)
Aliases:
Accepted values: SecurityTokenService, AdminWebService

Required: False
Position: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

Microsoft.Online.Deployment.Client.Framework.MicrosoftOnlineInstance+Identifier

System.String

System.Nullable`1[[Microsoft.Online.Deployment.Client.Framework.AzureService, Microsoft.Online.Deployment.Client.Framework, Version=1.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]

System.Management.Automation.SwitchParameter

输出

System.Object

Test-AdSyncUserHasPermissions

概要

Cmdlet to check if ADMA user has required permissions.

SYNTAX

Test-AdSyncUserHasPermissions [-ForestFqdn] <String> [-AdConnectorId] <Guid>
[-AdConnectorCredential] <PSCredential> [-BaseDn] <String> [-PropertyType] <String> [-PropertyValue] <String>
[-WhatIf] [-Confirm] [<CommonParameters>]

描述

Cmdlet to check if ADMA user has required permissions.

例子

示例 1

PS C:\> Test-AdSyncUserHasPermissions -ForestFqdn "contoso.com" -AdConnectorId "00000000-0000-0000-000000000000"
-AdConnectorCredential $connectorAcctCreds -BaseDn "CN=fabrikam,CN=Users,DC=contoso,DC=com" -PropertyType "Allowed-Attributes" -PropertyValue "name"

Checks if ADMA user has permissions to access the 'name' property of the user 'fabrikam'.

PARAMETERS

-AdConnectorCredential

AD Connector account credentials.

Type: PSCredential
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AdConnectorId

AD Connector ID.

Type: Guid
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-BaseDn

Base DN of the object to check.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Confirm

在运行 cmdlet 之前,提示你进行确认。

Type: SwitchParameter
Parameter Sets: (All)
Aliases: cf

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ForestFqdn

Name of the forest.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-PropertyType

Permission type you are looking for. Accepted values: Allowed-Attributes, Allowed-Attributes-Effective, Allowed-Child-Classes, Allowed-Child-Classes-Effective.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PropertyValue

The value you are looking for in PropertyType attribute.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 5
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-WhatIf

显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。

Type: SwitchParameter
Parameter Sets: (All)
Aliases: wi

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. 有关详细信息,请参阅 about_CommonParameters

输入

System.String

System.Guid

输出

System.Object

后续步骤