PackageDeployment Module Help

Package Deployment Module

Set-LocalUserProfile Cmdlet

Version 3.1.0.0

Set-LocalUserProfile

Synopsis

Set Profile Info for Local User

Syntax

Set-LocalUserProfile [-Name] <String> [[-ProfilePath] <String>] [[-LogonScript] <String>] [-ContinueOnError] [[-HomeLocalPath] <String>] [[-HomeDriveLetter] <String>] [[-HomeRemotePath] <String>] [[-Context] <String>] [<CommonParameters>]

Description

Use this command to assign a path for a user profile, a logon script name or a home directory to 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

6

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

-HomeDriveLetter <String>

Drive letter.

Required

False

Position

4

Accepts pipeline input

False

-HomeLocalPath <String>

If you want to specify a home directory for a specific workstation you must enter the local path in this text box.

Required

False

Position

3

Accepts pipeline input

False

-HomeRemotePath <String>

If you want to specify a home directory for a shared network drive you must enter a drive designation in the Connect text box and the network path in the To textbox.

Required

False

Position

5

Accepts pipeline input

False

-LogonScript <String>

Login script name Enter the name of the login script that can be assigned to one or more user accounts. When a user logs in, the location of the login script is defined by the workstation's login script path: C:\systemroot\SYSTEM32\REPL\IMPORT\SCRIPTS. If the login script resides in a subdirectory of the given login script path you must enter the name of the subdirectory in front of the login script name.

Required

False

Position

2

Accepts pipeline input

False

-Name <String>

Enter the user account name.

Required

True

Position

0

Accepts pipeline input

False

-ProfilePath <String>

Enter the path where you want to store the user profile. To activate a binding or server-based user profile you must enter a network path using the following syntax:\\Server_Name\ProfileDirectoryName\UserName.

Required

False

Position

1

Accepts pipeline input

False

<CommonParameters>

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