PowerShell: Counting users in Active Directory Group

Sometimes it is important to know how many users are in a particular Active Directory Security Group. The below PowerShell code will accomplish this for you. The Get-ADGroupMember cmdlet gets the members of an Active Directory group. Members can be users, groups, and computers. Code: $users = Get-ADGroupMember -Identity ‘Group Name’ $users.Count If you need

Read more 

Creating a Group Managed Service Account

The group Managed Service Account (gMSA) provides the same functionality within the domain but also extends that functionality over multiple servers. When connecting to a service hosted on a server farm, such as Network Load Balanced solution, the authentication protocols supporting mutual authentication require that all instances of the services use the same principal. When

Read more