# 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

- FW Admin
- [Create Local Admin (Win).fileset.zip](https://kb.filewave.com/attachments/458)

## 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 properties[![CreateLocalAdminWindows1.png](https://kb.filewave.com/uploads/images/gallery/2025-05/scaled-1680-/z14tpdmUAzWPceCJ-createlocaladminwindows1.png)](https://kb.filewave.com/uploads/images/gallery/2025-05/z14tpdmUAzWPceCJ-createlocaladminwindows1.png)
5. Enter in your local admin Username, Password and Full Name for the desired account[![CreateLocalAdminWindows2.png](https://kb.filewave.com/uploads/images/gallery/2025-05/scaled-1680-/o0TrOjg4xVqrx9UA-createlocaladminwindows2.png)](https://kb.filewave.com/uploads/images/gallery/2025-05/o0TrOjg4xVqrx9UA-createlocaladminwindows2.png)
6. Repeat the process for the remove\_admin.ps1 and enter in the desired Username to remove  
      
    <p class="callout warning">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.  
    </p>
    
    [![CreateLocalAdminWindows3.png](https://kb.filewave.com/uploads/images/gallery/2025-05/scaled-1680-/9nhmtCVgR3ZSi3H7-createlocaladminwindows3.png)](https://kb.filewave.com/uploads/images/gallery/2025-05/9nhmtCVgR3ZSi3H7-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 &gt; Accounts &gt; Other Users to view the newly created local admin account.[![CreateLocalAdminWindows4.png](https://kb.filewave.com/uploads/images/gallery/2025-05/scaled-1680-/qgG47jNZwddxGLMb-createlocaladminwindows4.png)](https://kb.filewave.com/uploads/images/gallery/2025-05/qgG47jNZwddxGLMb-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](https://kb.filewave.com/uploads/images/gallery/2025-05/scaled-1680-/65j9SWZh97u34Mva-createlocaladminwindows8.png)](https://kb.filewave.com/uploads/images/gallery/2025-05/65j9SWZh97u34Mva-createlocaladminwindows8.png)**

The remove\_admin script log will be labeled: **RemoveLocalUser\_FullCleanup.log**

**[![CreateLocalAdminWindows6.png](https://kb.filewave.com/uploads/images/gallery/2025-05/scaled-1680-/4OM4U2Shyj17QGbg-createlocaladminwindows6.png)](https://kb.filewave.com/uploads/images/gallery/2025-05/4OM4U2Shyj17QGbg-createlocaladminwindows6.png)**

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

[![CreateLocalAdminWindows5.png](https://kb.filewave.com/uploads/images/gallery/2025-05/scaled-1680-/szix0dZGuPB2GaXD-createlocaladminwindows5.png)](https://kb.filewave.com/uploads/images/gallery/2025-05/szix0dZGuPB2GaXD-createlocaladminwindows5.png)

## Related Content

- [How to Create Local User Accounts on macOS](https://kb.filewave.com/books/macos/page/how-to-create-local-user-accounts-on-macos-1015)