Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Latest commit

 

History

History
73 lines (49 loc) · 1.45 KB

Restore-PCCustomerUser.md

File metadata and controls

73 lines (49 loc) · 1.45 KB

Restore-PCCustomerUser

Restores a deleted customer user.

SYNTAX

Restore-PCCustomerUser [[-TenantId] <String>] [-UserId] <String> [[-SaToken] <String>] [<CommonParameters>]

DESCRIPTION

The Restore-PCCustomerUser cmdlet restores a deleted customer user.

PARAMETERS

-TenantId <String>

Specifies the tenant used for scoping this cmdlet.

Required?                    false
Position?                    1
Default value                $GlobalCustomerId
Accept pipeline input?       false
Accept wildcard characters?  false

-UserId <String>

Specifies the user id to restore.

Required?                    true
Position?                    2
Default value
Accept pipeline input?       false
Accept wildcard characters?  false

-SaToken <String>

Specifies an authentication token with your Partner Center credentials.

Required?                    false
Position?                    3
Default value                $GlobalToken
Accept pipeline input?       false
Accept wildcard characters?  false

INPUTS

OUTPUTS

NOTES

EXAMPLES

EXAMPLE 1

Find the deleted account.

PS C:\>$user = Get-PCCustomerUser -Deleted -TenantId db8ea5b4-a69b-45f3-abd3-dca19e87c536 | Where-Object {$_.userPrincipalName -eq 'John@wingtiptoyscsptest.onmicrosoft.com'}

Restore the deleted user account

    Restore-PCCustomerUser -TenantId $customer.id -UserId $User.Id