In today's article we are going over how to manage groups with a set of simple batch files. If you haven't read it you may want to start at article one Computer management bat files - Part 1: Users . Group Management Scripts The first part of our scripting is to create scripts for managing user accounts. We will create individual scripts for viewing, adding, enabling, disabling, user accounts as well as changing their passwords. How to list groups To list groups is a simple command Net Localgroup This will list all the groups on your computer as shown in the picture below. List users in a Group So know that we know how to list the groups, lets create a script that lists the users in those groups. @echo off :ListGroups Net localgroup setlocal EnableDelayedExpansion echo Type Below Requirements: echo. :group set /p grp= Type Group: if [!grp!]==[...
Comments
Post a Comment