UtilUserAccountAdd(String, String, String, String, Boolean, Boolean, WellKnownSidType) Method

Adds a new user account in the current machine context.

Definition

Namespace: DevCase.Core.Windows.Users
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static void Add(
	string username,
	string password,
	string displayName,
	string description,
	bool canChangePwd,
	bool pwdExpires,
	WellKnownSidType groupSid = WellKnownSidType.BuiltinUsersSid
)

Parameters

username  String
The user name.
password  String
The user password. If this value is empty, account is set to don't require any password.
displayName  String
The display name of the user account.
description  String
The description of the user account.
canChangePwd  Boolean
A value that indicates whether the user can change its password.
pwdExpires  Boolean
A value that indicates whether the password should expire.
groupSid  WellKnownSidType  (Optional)
A WellKnownSidType security identifier (SID) that determines the account group where to add the user.

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

See Also