Need a PowerShell Script to

admin-ayoola 25 Reputation points
2025-04-21T14:37:08.82+00:00

Hello All,

Please i need a PowerShell script that can search an Active Directory Domain for all instances where a Domain controller name is hard codded.

I am trying to get this because all clients computers are getting group policy update from the DC . The Dc is not having any FSMO role. It is only a global catalogue.

Also, PowerShell command to properly decommission a Domain controller and remove all records of that DC from the Domain.

Windows Server 2022
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.