Remove-PartnerCustomerUser
Removes a user from the customer's tenant.
Syntaxe
ByUserId (Par défaut)
Remove-PartnerCustomerUser
[-CustomerId] <String>
-UserId <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
ByUpn
Remove-PartnerCustomerUser
[-CustomerId] <String>
-UserPrincipalName <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Remove-PartnerCustomerUser cmdlet removes the specified user from the customer tenant.
Exemples
Example 1
PS C:\> Remove-PartnerCustomerUser -CustomerId db8ea5b4-a69b-45f3-abd3-dca19e87c536 -UserPrincipalName "hugh@wingtiptoys.onmicrosoft.com"
Removes 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
Removes the customer user with the User identifier of 6e668259-1f09-479d-bcb8-d9b03e826b8d
Paramètres
-Confirm
Prompts you for confirmation before running the cmdlet.
Propriétés du paramètre
Type: | SwitchParameter |
Valeur par défaut: | None |
Prend en charge les caractères génériques: | False |
DontShow: | False |
Alias: | cf |
Jeux de paramètres
(All)
Position: | Named |
Obligatoire: | False |
Valeur du pipeline: | False |
Valeur du pipeline par nom de propriété: | False |
Valeur des arguments restants: | False |
-CustomerId
Identifier for the customer.
Propriétés du paramètre
Type: | String |
Valeur par défaut: | None |
Prend en charge les caractères génériques: | False |
DontShow: | False |
Jeux de paramètres
(All)
Position: | 0 |
Obligatoire: | True |
Valeur du pipeline: | False |
Valeur du pipeline par nom de propriété: | False |
Valeur des arguments restants: | False |
-UserId
Identifier for the user.
Propriétés du paramètre
Type: | String |
Valeur par défaut: | None |
Prend en charge les caractères génériques: | False |
DontShow: | False |
Jeux de paramètres
ByUserId
Position: | Named |
Obligatoire: | True |
Valeur du pipeline: | False |
Valeur du pipeline par nom de propriété: | False |
Valeur des arguments restants: | False |
-UserPrincipalName
Identifier for the customer.
Propriétés du paramètre
Type: | String |
Valeur par défaut: | None |
Prend en charge les caractères génériques: | False |
DontShow: | False |
Jeux de paramètres
ByUpn
Position: | Named |
Obligatoire: | True |
Valeur du pipeline: | False |
Valeur du pipeline par nom de propriété: | False |
Valeur des arguments restants: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Propriétés du paramètre
Type: | SwitchParameter |
Valeur par défaut: | None |
Prend en charge les caractères génériques: | False |
DontShow: | False |
Alias: | wi |
Jeux de paramètres
(All)
Position: | Named |
Obligatoire: | False |
Valeur du pipeline: | False |
Valeur du pipeline par nom de propriété: | False |
Valeur des arguments restants: | 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.