- 1 year ago
Command to check the count of total admin group members in windows
Comment
1 / 1
You can use the Get-LocalGroupMember
cmdlet in PowerShell to retrieve a list of members of a local group in Windows. To get the count of all members in the Administrators group, you can use the following command:
mathematica(Get-LocalGroupMember -Group "Administrators").Count
This command retrieves all members of the "Administrators" group and then returns the count of members in that group.