Condividi tramite


Restore-PartnerCustomerUser

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

Sintassi

ByUserId (impostazione predefinita).

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

ByUpn

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

Descrizione

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

Esempio

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

Parametri

-Confirm

Prompts you for confirmation before running the cmdlet.

Proprietà dei parametri

Tipo:SwitchParameter
Valore predefinito:None
Supporta i caratteri jolly:False
DontShow:False
Alias:cf

Set di parametri

(All)
Posizione:Named
Obbligatorio:False
Valore dalla pipeline:False
Valore dalla pipeline in base al nome della proprietà:False
Valore dagli argomenti rimanenti:False

-CustomerId

Identifier for the customer.

Proprietà dei parametri

Tipo:String
Valore predefinito:None
Supporta i caratteri jolly:False
DontShow:False

Set di parametri

(All)
Posizione:0
Obbligatorio:True
Valore dalla pipeline:False
Valore dalla pipeline in base al nome della proprietà:False
Valore dagli argomenti rimanenti:False

-UserId

Identifier for the user.

Proprietà dei parametri

Tipo:String
Valore predefinito:None
Supporta i caratteri jolly:False
DontShow:False

Set di parametri

ByUserId
Posizione:Named
Obbligatorio:True
Valore dalla pipeline:False
Valore dalla pipeline in base al nome della proprietà:False
Valore dagli argomenti rimanenti:False

-UserPrincipalName

Identifier for the customer.

Proprietà dei parametri

Tipo:String
Valore predefinito:None
Supporta i caratteri jolly:False
DontShow:False

Set di parametri

ByUpn
Posizione:Named
Obbligatorio:True
Valore dalla pipeline:False
Valore dalla pipeline in base al nome della proprietà:False
Valore dagli argomenti rimanenti:False

-WhatIf

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

Proprietà dei parametri

Tipo:SwitchParameter
Valore predefinito:None
Supporta i caratteri jolly:False
DontShow:False
Alias:wi

Set di parametri

(All)
Posizione:Named
Obbligatorio:False
Valore dalla pipeline:False
Valore dalla pipeline in base al nome della proprietà:False
Valore dagli argomenti rimanenti: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.

Input

None

Output

System.Boolean