--- ### Add a Local User Use the `net user` command to create a new local user account. ``` net user <Username> <Password> /add ``` **For Example:** ``` net user test1 testpassw0rd! /add ``` > **Note:** Replace `test1` and `testpassw0rd!` with your desired username and password. --- ### Add a User to the Local Admin Group Use the `net localgroup` command to assign an existing user to the local **Administrators** group. ``` net localgroup administrators <Username> /add ``` **For Example:** ``` net localgroup administrators test1 /add ``` --- ### Set Password to Never Expire Use the **Windows Management Instrumentation Command-line (WMIC)** to modify the account properties so the password never expires. ``` WMIC USERACCOUNT WHERE Name='<Username>' SET PasswordExpires=FALSE ``` **Example:** ``` WMIC USERACCOUNT WHERE Name='test1' SET PasswordExpires=FALSE ``` > **Important:** This command is typically more reliable when executed directly in the **Command Prompt (CMD)**, not PowerShell. --- ### Disable a User Account Use the `net user` command with the `/active:no` switch to immediately disable the specified account, preventing login. ``` net user <Username> /active:no ``` **Example:** ``` net user test1 /active:no ``` --- #cmd #usermanagment #netuse #localgroup #wmic