AsBuiltReport / AsBuiltReport.Microsoft.AD

Repository for AsBuiltReport Microsoft Active Directory module
https://techmyth.blog/posts/homelab-ad-doc-using-asbuiltreport/
MIT License
63 stars 18 forks source link

Issues on Certificate Authority section #77

Closed rebelinux closed 2 years ago

rebelinux commented 2 years ago

Describe the bug

The Certificate Authority section does not run if run on a PC that is not a member of the domain under test.

To Reproduce Steps to reproduce the behavior:

  1. Run report on a PC not member of the Domain in Target
  2. An error is displayed in the CA cmdlet that queries the domain of the PC instead of the domain specified in the target.

Expected behavior

The report must find out the current domain of the PC and compare it with the list of domains in the forest to find out if the PC used to run the report is in the list of domains to be analyzed.