-
# Get-FSMOHolders.ps1 # Gets the names of the systems holding the 5 FSMO holders # Runs on a domain-joined machine # Thomas Lee - tfl@psp.co.uk # Get host,forest and domain details $Hostname = hostname $forest = [DirectoryServices.ActiveDirectory...
-
# Get-Forest.ps1 # Shows use of GetCurrentForest to return information about the forest # Thomas Lee - tfl@psp.co.uk $forest = [System.DirectoryServices.ActiveDirectory.Forest] :: GetCurrentForest() " You are connected to the {0} forest " -f $forest .name This script produces the following...