Microsoft Active Directory Documentation Script V3.06

Version 3.06 27-Jul-2021

  • Add new Function ProcessOUsForBlockedInheritance to add a report section for OUs with GPO Block Inheritance set
  • Add new Function ProcessSYSVOLStateInfo to show the SYSVOL state for each DC as an Appendix
  • Added by MBS, HTML codes for AlignLeft and AlignRight
    • Update Function AddHTMLTable
    • Update Function FormatHTMLTable
    • Update Function Get-ComputerCountByOS
    • Update Function getDSUsers
    • Update Function OutputEventLogInfo
    • Update Function ProcessEventLogInfo
    • Update Function ProcessGroupInformation
    • Update Function ProcessOrganizationalUnits
    • Update Function ProcessSYSVOLStateInfo
    • Update Function WriteHTMLLine
  • In Function ProcessAllDCsInTheForest, change the way all domain controllers in the forest are retrieved
    • The previous method did not always find RODC appliances
    • Use new method given by MBS
  • The following fixes were requested by Jorge de Almeida Pinto
    • In Function Get-RegistryValue, removed the Write-Verbose message on error as it confused people
    • In Function OutputADFileLocations, check only for null to catch appliances (Riverbed) with no registry
    • In Function OutputEventLogInfo, add Try/Catch to Get-EventLog to catch appliances (Riverbed) with no event logs
    • In Function OutputTimeServerRegistryKeys, check only for null to catch appliances (Riverbed) with no registry
    • When processing DCs, add testing to see if the DC is online before processing registry keys
      • Add an error message to the console and output file
    • When testing a DC to see if it was online, I used the wrong variable name
  • In Function ProcessScriptEnd, always output Company Name
  • In Function ShowScriptOptions, always output Company Name

If you run the script in a multiple domain forest or have Read-only Domain Controller appliances and have questions or issues, please email me. webster at carlwebster dot com.

You can always find the most current script by going to https://www.carlwebster.com/where-to-get-copies-of-the-documentation-scripts/

Thanks

Webster