So I am a noob to this AD world and I am trying to get assistance with a problem. My team has been assigned a security group in AD some years ago. Our team is now splitting and we need to create a new security group so the team has the right access and then parse out all servers that the other team no longer needs access to. We have been given access via the security group to many servers across the enterprise and unfortunately, there was no record kept of the servers. I have been told the only way to find this information out would be to log in to every server in the enterprise and see if the id is present.
Can some tell me is there a way to put in a PowerShell command similar to what I listed below that can be used on an enterprise DC/Forest DC to pull back the listed items below?
Group id: (Security Group)
Server Location: (example) Servername/path
Domain Name:
The script when researching I found was
Get-ADGroupMember -Identity "enterprise admins" -Server "ad.2012.com" | Select-Object Name, distinguishedName
I truly appreciate any feedback to help.