PackageDeployment Module Help

Package Deployment Module

Set-LocalUserPassword Cmdlet

Version 4.0.0.5

Set-LocalUserPassword

Synopsis

Change Password of a Local User

Syntax

Set-LocalUserPassword [-Name] <String> [[-Password] <String>] [[-Context] <String>] [-ContinueOnError] [<CommonParameters>]

Description

Use this command to change the password of a local user account.

Parameters

-Context <String>

User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user.
UserPerService: User-related command, execution in Service context.
Computer: Execution under user account; logging in HKEY_CURRENT_MACHINE, i.e. for the computer.
ComputerPerService: Execution in service context; logging in HKEY_LOCAL_MACHINE, i.e. for the computer.

Required

False

Position

2

Accepts pipeline input

False

-ContinueOnError <SwitchParameter>

Continues script execution in spite of errors in the respective command

Required

False

Position

Named

Accepts pipeline input

False

-Name <String>

Enter the user account name.

Required

True

Position

0

Accepts pipeline input

False

-Password <String>

Enter the password (up to 14 case-sensitive characters). Then confirm by re-entering this password in the Confirm password text box.

Required

False

Position

1

Accepts pipeline input

False

<CommonParameters>

For more information about common parameters, type "Get-Help about_CommonParameters".