Skip to main content

Create local admin accounts on Windows

Description

Need to manage local admin accounts on your Windows devices? FileWave has you covered. Below is the recipe with Fileset to create your local admin account with username, password and full name. In addition, if needing to remove the local admin account, there is a removal script included.

Ingredients

Directions

  1. Download and unzip the Fileset

  2. Import into your server via FileWave Admin
  3. Highlight the Fileset and select "Scripts" for this Fileset
  4. Select the create_admin.ps1 to open the script propertiesCreateLocalAdminWindows1.png
  5. Enter in your local admin Username, Password and Full Name for the desired accountCreateLocalAdminWindows2.png
  6. Repeat the process for the remove_admin.ps1 and enter in the desired Username to remove

    The remove_admin.ps1 script environment variable needs to match the Username found on the machine or in the create_admin.ps1. If it does not match it will not successfully remove the admin account.

    CreateLocalAdminWindows3.png
  7. Close the Script window to Save
  8. Assign to a test device
  9. Perform a Model Update to deploy

Confirmation of local admin created, you may open the Windows Settings > Accounts > Other Users to view the newly created local admin account.CreateLocalAdminWindows4.png

Notes

Both scripts will output their executed tasks for detailed logging. These logs may be found in:

C:\ProgramData\FileWave\Logs\

The create_admin script log will be labeled: CreateLocalUser_FromEnv.log

CreateLocalAdminWindows8.png

The remove_admin script log will be labeled: RemoveLocalUser_FullCleanup.log

CreateLocalAdminWindows6.png

The create admin script will skip if there is an username already exists.

CreateLocalAdminWindows5.png