Skip to content

bitbang01/Domain-Controller-Healthchecks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Visit:

Script_Powershell

Title: Domain Controller Replication Healthchecks Script

Note:

  • Script does not perform any kind of changes/modification to your environment and safe to run.
  • Powershell module for active directory must be installed on the machine
  • Some dcdiag or repadmin tests might require domain admin privileges

How it works:

  1. Commands used in the script are only for healthchecks. No changes triggered to the environment.
  2. Script is combination of 5-6 DC Healthcheck commands
  3. Each command's text output file will be stored on your Desktop location
  4. Script will read the files and show relevent information related to the Healthcheck and removed extra lines of information which consumes time

Achievement:

A lot of time can be saved through automated domain controller healthchecks and highlighting the test passed or failed in colored format. Parsing errors though each line manually takes time.

Commands Used in the Script:

  • netdom query fsmo
  • repadmin /kcc
  • dcdiag /v
  • dcdiag /test:replications
  • dcdiag /test:netlogons
  • dcdiag /test:knowsofroleholders /v
  • repadmin /showrepl
  • Repadmin /viewlist *

What Next:

  • You can request me for better documentaion in readme file. Ofcourse I can improve on comments in the scripts.
  • Error handling required for failed commands. [Generally not required in scenarios if you have AD powershell module installed with connectivity to DC]
  • Create GUI Interface for all DC related healthchecks and information
  • Happy to work with collaborators: Lets take the project to next BitBang

About

Handy PowerShell Scripts for Domain Admins πŸŽ€

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published