Skip to content
/ ADxRay Public
forked from ClaudioMerola/ADxRay

Active Directory's Health Check script that generates a full HTML report of the environment's health, security and status based on Microsoft's Best Practices.

License

Notifications You must be signed in to change notification settings

pt1987/ADxRay

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Active Directory xRay Script

The script does not record, create or modify anything in the environment (except for creating a folder named “ADxRay” in C:\ of the computer running the script. Inside that folder the log files and the main report file named “ADxRay_Report(YEAR-MONTH-DAY).htm” is created).

The script must be run at a Domain Controller running at least Windows Server 2012 (see requirements below).

The script must be run by a user with Domain Admin privileges (Enterprise Admins if dealing with multiple domains and forests).

This script may take several hours to complete!


How to run:

Just copy or download the ADxRay.ps1 and run on any computer that meets the requirements below.


Requirements:

The script must be run with the following requirements:

  • Must be run on Domain Controller (due to the tools used during the inventory)
  • Must be run with rights to read objects in the entire forest and run AD Tools (dcdiag, SETSPN, dsquery, GET-AD*)
  • Must be run with elavated Powershell (Run as Administrator) - This is necessary to create the folders to keep the files generated
  • Internet connection is not required*

Internet connection might be use by the script for version validation, but is not a requirement.


What the script does:

This script will create the folder C:\ADxRay and run a deep inventory of your entire Active Directory environment, indicating what’s bad and what’s good. All the tests and validations are explained and contains external links to official Microsoft documentation and/or well know blog post from MVPs.


The Inventory phase of the script may take a long time to run depending on the size of the environment.


Even the script may overload the server used to run, it is not harmful to the environment. The users will not be affected and no modifications will be made in the environment (there is not a single “set-” powershell command and the only “new-“ were regarding the creation of the html report file and the xml inventory files)


Screenshots:


alt text


User and Computer Account's health:


alt text


Group Policy Validations:


alt text


Domain Controller's Health:


alt text


Domain Controller's NTP and DNS Configuration:


alt text


Domain Controller's Security Policy Status (against Microsoft's Best Practices):


alt text


Domain Controller's Hardware Inventory:


alt text


Domain Controller's Software Inventory:


alt text

About

Active Directory's Health Check script that generates a full HTML report of the environment's health, security and status based on Microsoft's Best Practices.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 100.0%