Avatar of Decarn
Decarn
 asked on

Script to Identify all local groups and members in the respective group

Hi,

I have a whole list of Windows 2012 R2 servers and i am task to find out all the local groups in each server and the members in the respective local group. The members may be local user account, domain user account and/or service account.

I use the net localgroup to list down all the groups followed by net localgroup "Group Name" to list down the member of each group, but this is too tedious. Is there a script to simplify this?

Thanks.
PowershellWindows OSWindows Server 2012

Avatar of undefined
Last Comment
Seth Simmons

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
PRADIIP SINGH

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Seth Simmons

No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: PRADIIP SINGH (https:#a42087642)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

seth2740
Experts-Exchange Cleanup Volunteer
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck