Set-LocalUserFlags
PackageDeployment Module Help |
Package Deployment Module |
Set-LocalUserFlags Cmdlet |
Version 4.0.0.5 |
Set-LocalUserFlags
Synopsis
Change Flags for a Local User Account
Syntax
Set-LocalUserFlags [-Name] <String> [[-Context] <String>] [-ContinueOnError] [-Disabled] [-PasswordNeverExpires] [-UserMayNotChangePassword] [<CommonParameters>]
Description
Use this command to modify the properties (account policies) of a local user account.
Parameters
-Context <String> |
||||||
User: Execution under user account; logging in HKEY_CURRENT_USER, i.e. for the user. |
||||||
|
-ContinueOnError <SwitchParameter> |
||||||
Continues script execution in spite of errors in the respective command |
||||||
|
-Disabled <SwitchParameter> |
||||||
Select this option to prevent the account from being used. You cannot disable the predefined Administrator account. |
||||||
|
-Name <String> |
||||||
Enter the user account name. |
||||||
|
-PasswordNeverExpires <SwitchParameter> |
||||||
Select this option if you want to prevent a password from expiring (this option overwrites the Maximum Password Age setting in the Account Policy dialog box). You should check this option if you want to assign a service to the selected user account (for example the Replicator Service). You can select this service by clicking the Service icon on the Control Panel. |
||||||
|
-UserMayNotChangePassword <SwitchParameter> |
||||||
Select this option if you do not want the user to change the assigned password. You should use this option if accounts are used by several users. The setting is not valid for members of the local Admins group. |
||||||
|
<CommonParameters> |
For more information about common parameters, type "Get-Help about_CommonParameters". |