
powesrshjell
Using Windows PowerShell to list domain controllers in each of the domains within an ADS forest
Using Windows PowerShell to list domain controllers in each of the domains with an ADS forest
If ever you need to get the list all of the domain controllers within a forest you can use powershell to do it for you and write it to a file.
Note, of course your computer must Windows Powershell installed for this to work!
Here is how:
Create a new file with the following code on your computers file system. I am calling mine getDC.ps1 and i am saving it under c:\scripts
