Set-PartnerCustomerUser
Updates the specified customer user account.
Set-PartnerCustomerUser
[-DisplayName <String>]
[-FirstName <String>]
[-ForceChangePasswordNextLogin]
[-CustomerId] <String>
[-LastName <String>]
[-Password <SecureString>]
[-UsageLocation <String>]
-UserId <String>
[-UserPrincipalName <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Set-PartnerCustomerUser
[-DisplayName <String>]
[-FirstName <String>]
[-ForceChangePasswordNextLogin]
[-CustomerId] <String>
-InputObject <PSCustomerUser>
[-LastName <String>]
[-Password <SecureString>]
[-UsageLocation <String>]
[-UserPrincipalName <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
The Set-PartnerCustomerUser cmdlet modifies a customer user account.
PS C:\> Set-PartnerCustomerUser -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -UserId 00aa00aa-bb11-cc22-dd33-44ee44ee44ee -LastName 'Sullivan'
Modify the user's last name
$password = '<Password>'
PS C:\>$passwordSecure = $password | ConvertTo-SecureString -AsPlainText -Force
PS C:\>Set-PartnerCustomerUser -CustomerId 46a62ece-10ad-42e5-b3f1-b2ed53e6fc08 -UserId 00aa00aa-bb11-cc22-dd33-44ee44ee44ee -Password $passwordSecure -ForceChangePassword $true
Set the password for the user account and require the user to change the password during the next sign on.
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Identifier for the customer.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
User's display name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
User's first name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Forces user to change password during next login.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The customer user object to be modified.
Type: | PSCustomerUser |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
User's last name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
User's new password.
Type: | SecureString |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
The usage location, the location where user intends to use the license.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Identifier for the user.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
User principal name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Microsoft.Store.PartnerCenter.PowerShell.Models.Users.PSCustomerUser
Microsoft.Store.PartnerCenter.PowerShell.Models.Users.PSCustomerUser