Install-User

Installs a local user account.

Syntax

Install-User [-Username] <String> [-Password] <String> [[-Description] <String>] [[-FullName] <String>] [-WhatIf] [-Confirm] [<CommonParameters>]

Description

Creates a new local user account, or, if the account already exists, updates its password and description. In both cases, the users password is set to never expire. This should probably be a parameter. Send us a patch!

Parameters

Name Type Description Required? Pipeline Input Default Value
Username String The username for the user. true false
Password String The user's password. true false
Description String A description of the user. false false
FullName String The full name of the user. false false
WhatIf SwitchParameter false false
Confirm SwitchParameter false false
CommonParameters This cmdlet supports common parameters. For more information type
Get-Help about_CommonParameters.

EXAMPLE 1

Install-User -Username LSkywalker -Password "whydidn'tyoutellme" -Description "Luke Skywalker's account."

Creates a new LSkywalker user account with the given password and description. Luke's password is set ot never expire.