You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ps-win-groups-users/Invoke-LocalUserManagement.ps1
+42-39Lines changed: 42 additions & 39 deletions
Original file line number
Diff line number
Diff line change
@@ -1,39 +1,42 @@
1
-
FunctionManage-LocalUser {
1
+
FunctionInvoke-LocalUserManagement {
2
2
<#
3
3
.SYNOPSIS
4
-
Manage-LocalUser is a PowerShell function for performing various user management tasks on the local Windows machine. It supports actions such as resetting passwords, adding users, removing users, importing/exporting user data to/from CSV, checking user lockout status, and more.
4
+
Performs various management operations on local users.
5
5
6
6
.DESCRIPTION
7
-
Manage-LocalUser is a versatile utility that simplifies common tasks related to local user management. It provides a range of actions for modifying and querying local user accounts on a Windows system.
7
+
This function allows performing actions such as resetting passwords, adding or removing users, getting user information, exporting data to CSV, and more, for local users on a system.
8
8
9
9
.PARAMETERAction
10
-
Mandatory - Choose from a list of predefined actions such as "ResetPassword," "AddUser," "RemoveUser," "AddUsers," "RemoveUsers," "GetUsers," "GetMembers," "ExportCSV," "ImportCSV," "CheckLock," and more.
11
-
.PARAMETERUsername
12
-
Mandatory - the username or usernames on which the action should be performed. This can be a single username or an array of usernames.
10
+
Action to perform, available include "ResetPassword", "AddUser", "RemoveUser", "AddUsers", "RemoveUsers", "GetUsers", "GetMembers", "ExportCSV", "ImportCSV", "CheckLock", "ProgressReporting", "Logging", "Comments", "Automation", "InventoryFile", "ErrorHandling", "Authentication", "InputValidation", and "Rollback".
11
+
.PARAMETERUser
12
+
Specifies the user or users on which the action will be performed.
13
13
.PARAMETERGroupName
14
-
NotMandatory - (For "AddUser" and "RemoveUser" actions) Specifies the name of the group to which the user should be added or removed.
15
-
.PARAMETERPassword
16
-
NotMandatory - specifies the password to set for the user(s). Only used in actions that require password modification.
14
+
Specifies the group or groups to which the user belongs.
15
+
.PARAMETERPass
16
+
Specifies the password to set for the user.
17
17
.PARAMETERUserMayNotChangePassword
18
-
NotMandatory - indicates that the user(s) should not be allowed to change their password. Only used in actions that require password modification.
18
+
Indicates whether the user is allowed to change their password.
19
19
.PARAMETERPasswordNeverExpires
20
-
NotMandatory - indicates that the user(s) should have passwords set to never expire. Only used in actions that require password modification.
20
+
Indicates whether the user's password should never expire.
21
21
.PARAMETERAccountNeverExpires
22
-
NotMandatory - indicates that the user(s) should have accounts set to never expire. Only used in actions that require account modification.
22
+
Indicates whether the user's account should never expire.
23
23
.PARAMETERDescription
24
-
NotMandatory - description to associate with the user(s). Only used in actions that require user creation or modification.
24
+
Specifies the description for the user account.
25
25
.PARAMETERDisabled
26
-
NotMandatory - (For "AddUser" and "AddUsers" actions) Indicates that the user(s) should be created as disabled accounts.
26
+
Indicates whether the user account is disabled.
27
27
.PARAMETERFile
28
-
NotMandatory - (For "ImportCSV" and "ExportCSV" actions) Specifies the path to the CSV file to import user data from or export data to.
28
+
Path to a file used for importing or exporting data.
29
29
.PARAMETERLogFile
30
-
NotMandatory - specifies the path for the log file where operation results and error messages will be recorded.
0 commit comments