次の方法で共有


Restore-PartnerCustomerUser

Restores a previously removed customer user from the customer's tenant.

構文

ByUserId (既定)

Restore-PartnerCustomerUser
    [-CustomerId] <String>
    -UserId <String>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

ByUpn

Restore-PartnerCustomerUser
    [-CustomerId] <String>
    -UserPrincipalName <String>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

説明

The Restore-PartnerCustomerUser cmdlet restores the specified user that was previously removed from the customer tenant.

Example 1

PS C:\> Restore-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserPrincipalName "Hugh@wingtiptoys.onmicrosoft.com"

Restores the customer user with the User Principal Name of Hugh@wingtiptoys.onmicrosoft.com

Example 2

PS C:\> Remove-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserId

Restores the customer user with the User identifier of 6e668259-1f09-479d-bcb8-d9b03e826b8d

パラメーター

-Confirm

Prompts you for confirmation before running the cmdlet.

パラメーターのプロパティ

型:SwitchParameter
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:cf

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-CustomerId

Identifier for the customer.

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

(All)
配置:0
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-UserId

Identifier for the user.

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

ByUserId
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-UserPrincipalName

Identifier for the customer.

パラメーターのプロパティ

型:String
規定値:None
ワイルドカードのサポート:False
DontShow:False

パラメーター セット

ByUpn
配置:Named
必須:True
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値:False

-WhatIf

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

パラメーターのプロパティ

型:SwitchParameter
規定値:None
ワイルドカードのサポート:False
DontShow:False
Aliases:wi

パラメーター セット

(All)
配置:Named
必須:False
パイプラインからの値:False
プロパティ名別のパイプラインからの値:False
残りの引数からの値: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.

入力

None

出力

System.Boolean