Get-ForestModeEnumValues.ps1

by Dec 18, 2008

  # Get-ForestModeEnumValues.ps1   # Prints out the values of the ForestMode Enum   # Thomas Lee – tfl@psp.co.uk     # Enumerate System.DirectoryServices.ActiveDirectory.forestmode     $enums =[enum]::GetValues([System.DirectoryServices.ActiveDirectory.ForestMode])    # Display values   "System.Net.DirectoryServices.ActiveDirectory.Forest mode enum has {0} possible values:" -f $enums .count  $i =1… Read the full text.