Category filter

Scripts to add users to a group on Windows 10 devices

User Management on Windows 10 devices becomes easier when the users are grouped. Hexnode lets admins deploy scripts to group users on multiple devices simultaneously.

Disclaimer:

The Sample Scripts provided below are adapted from third-party Open-Source sites.

Batch Script

E.g., To add the user Josh to the group of Users,

net localgroup Users Josh /add

Powershell Script

E.g., To add the user Josh to the group of Users,

Add-LocalGroupMember –Group “Users” -Member “Josh”

Notes:

  • It is recommended to manually validate the script execution on a system before executing the action in bulk.
  • Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.

  • Sample Script Repository