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

Unable to run report #69

Closed rebelinux closed 2 years ago

rebelinux commented 2 years ago

Hi, I'm trying to run the current module with the command using powershell7 & PowerShell 5.1 from a client machine to the AD server without any success: Script: New-AsBuiltReport -Report Microsoft.AD -Target 'FQDN Name' -username 'username@domainName' -Password 'xxxxxx' -Format Html -OutputFolderPath 'C:\Users\Administrator\Documents\' -Timestamp PS 7 error: Get-ADDomain: Cannot validate argument on parameter 'Identity'. The Identity property on the argument is null or empty. Get-ADDomain: Cannot validate argument on parameter 'Identity'. The Identity property on the argument is null or empty. Get-DhcpServerInDC: Cannot process argument transformation on parameter 'CimSession'. Cannot convert the "CimSession: xx.xx.xx" value of type "Deserialized.Microsoft.Management.Infrastructure.CimSession" to type "Microsoft.Management.Infrastructure.CimSession[]". New-AsBuiltReport: The term 'Get-CertificationAuthority' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.If applicable, add screenshots to help explain your problem.

Client OS: Win10 x64-based PC ,EnterpriseEdition, 10.0.19043, VMware Virtual Platform Server OS: Windows Server 2019

PS x86: Cannot validate argument on parameter 'Identity'. The Identity property on the argument is null or empty.

SA-del-alt commented 2 years ago

image image

rebelinux commented 2 years ago

The only possible solution I can think of that you can use to solve this situation is to generate a New-AsBuiltReportConfig: https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD#pencil2-configuration

And change the PSDefaultAuthentication option to Kerberos: https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD#options

Screenshot from 2022-10-04 10-32-05

Generate a Microsoft Active Directory As Built Report for Domain Controller Server 'admin-dc-01v.contoso.local' using specified credentials and report configuration file. Export report to Text, HTML & DOCX formats. Use default report style. Save reports to 'C:\Users\Jon\Documents'. Display verbose messages to the console.

PS C:\> New-AsBuiltReport -Report Microsoft.AD -Target 'admin-dc-01v.contoso.local' -Username 'administrator@contoso.local' -Password 'P@ssw0rd' -Format Text,Html,Word -OutputFolderPath 'C:\Users\Jon\Documents' -ReportConfigFilePath 'C:\Users\Jon\AsBuiltReport\AsBuiltReport.Microsoft.AD.json' -Verbose
rebelinux commented 2 years ago

Did you test the recommendation I gave you?

SA-del-alt commented 2 years ago

Hi, I did test it but ut did not help...

image

This is the output I ran from the client (generating from the AD is working fine) and it still not working fine:

VERBOSE: As Built Report configuration file not saved. VERBOSE: Config.Report.Author = xxxx xxxxx VERBOSE: Config.UserFolder.Path = VERBOSE: Config.Company.Address = VERBOSE: Config.Company.Email = VERBOSE: Config.Company.FullName = VERBOSE: Config.Company.Phone = VERBOSE: Config.Company.ShortName = VERBOSE: Config.Company.Contact = VERBOSE: Config.Email.Port = VERBOSE: Config.Email.UseSSL = VERBOSE: Config.Email.Server = VERBOSE: Config.Email.Credentials = VERBOSE: Config.Email.From = VERBOSE: Config.Email.To = VERBOSE: Config.Email.Body = VERBOSE: Populating RepositorySourceLocation property for module AsBuiltReport.Microsoft.AD. VERBOSE: Loading module from path 'C:\Users\Administrator\Documents\PowerShell\Modules\AsBuiltReport.Microsoft.AD\0.7.7\AsBuiltReport.Microsoft.AD.psm1'. VERBOSE: Loading AsBuiltReport.Microsoft.AD report configuration file from path 'C:\Users\Administrator\AsBuiltReport\AsBuiltReport.Microsoft.AD.json'. VERBOSE: Setting report filename to 'Microsoft AD As Built Report'. VERBOSE: [ 22:25:33:466 ] [ Document ] - Document 'Microsoft AD As Built Report' processing started. VERBOSE: [ 22:25:33:547 ] [ Document ] - Executing report style script from path 'C:\Users\Administrator\Documents\PowerShell\Modules\AsBuiltReport.Microsoft.AD\0.7.7\AsBuiltReport.Microsoft.AD.Style.ps1'. VERBOSE: [ 22:25:33:572 ] [ Document ] - Setting global document options. VERBOSE: [ 22:25:33:573 ] [ Document ] - Enabling section/heading numbering. VERBOSE: [ 22:25:33:575 ] [ Document ] - Setting default font(s) to 'Arial'. VERBOSE: [ 22:25:33:576 ] [ Document ] - Setting page top margin to '25.05'mm. VERBOSE: [ 22:25:33:577 ] [ Document ] - Setting page right margin to '25.05'mm. VERBOSE: [ 22:25:33:577 ] [ Document ] - Setting page bottom margin to '25.05'mm. VERBOSE: [ 22:25:33:578 ] [ Document ] - Setting page left margin to '25.05'mm. VERBOSE: [ 22:25:33:579 ] [ Document ] - Setting page size to 'A4'. VERBOSE: [ 22:25:33:579 ] [ Document ] - Setting page orientation to 'Portrait'. VERBOSE: [ 22:25:33:580 ] [ Document ] - Setting page height to '297'mm. VERBOSE: [ 22:25:33:581 ] [ Document ] - Setting page width to '210'mm. VERBOSE: [ 22:25:33:582 ] [ Document ] - Setting document style 'Title'. VERBOSE: [ 22:25:33:583 ] [ Document ] - Setting document style 'Title2'. VERBOSE: [ 22:25:33:584 ] [ Document ] - Setting document style 'Title3'. VERBOSE: [ 22:25:33:585 ] [ Document ] - Setting document style 'Heading1'. VERBOSE: [ 22:25:33:587 ] [ Document ] - Setting document style 'Heading2'. VERBOSE: [ 22:25:33:590 ] [ Document ] - Setting document style 'Heading3'. VERBOSE: [ 22:25:33:591 ] [ Document ] - Setting document style 'NOTOCHeading3'. VERBOSE: [ 22:25:33:593 ] [ Document ] - Setting document style 'Heading4'. VERBOSE: [ 22:25:33:593 ] [ Document ] - Setting document style 'NOTOCHeading4'. VERBOSE: [ 22:25:33:595 ] [ Document ] - Setting document style 'Heading5'. VERBOSE: [ 22:25:33:596 ] [ Document ] - Setting document style 'NOTOCHeading5'. VERBOSE: [ 22:25:33:597 ] [ Document ] - Setting document style 'Heading6'. VERBOSE: [ 22:25:33:598 ] [ Document ] - Setting document style 'NOTOCHeading6'. VERBOSE: [ 22:25:33:599 ] [ Document ] - Setting document style 'Normal'. VERBOSE: [ 22:25:33:605 ] [ Document ] - Setting document style 'Caption'. VERBOSE: [ 22:25:33:606 ] [ Document ] - Setting document style 'Header'. VERBOSE: [ 22:25:33:607 ] [ Document ] - Setting document style 'Footer'. VERBOSE: [ 22:25:33:608 ] [ Document ] - Setting document style 'TOC'. VERBOSE: [ 22:25:33:609 ] [ Document ] - Setting document style 'TableDefaultHeading'. VERBOSE: [ 22:25:33:611 ] [ Document ] - Setting document style 'TableDefaultRow'. VERBOSE: [ 22:25:33:612 ] [ Document ] - Setting document style 'Critical'. VERBOSE: [ 22:25:33:613 ] [ Document ] - Setting document style 'Warning'. VERBOSE: [ 22:25:33:614 ] [ Document ] - Setting document style 'Info'. VERBOSE: [ 22:25:33:615 ] [ Document ] - Setting document style 'OK'. VERBOSE: [ 22:25:33:616 ] [ Document ] - Setting table style 'TableDefault'. VERBOSE: [ 22:25:33:619 ] [ Document ] - Setting table style 'Borderless'. VERBOSE: [ 22:25:33:621 ] [ Document ] - Processing document header started. VERBOSE: [ 22:25:33:622 ] [ Document ] - Processing paragraph 'Microsoft AD As Built Report - v1.0'. VERBOSE: [ 22:25:33:626 ] [ Document ] - Processing document header completed. VERBOSE: [ 22:25:33:627 ] [ Document ] - Processing document footer started. VERBOSE: [ 22:25:33:628 ] [ Document ] - Processing paragraph 'Page <!# PageNumber #!>'. VERBOSE: [ 22:25:33:629 ] [ Document ] - Processing document footer completed. VERBOSE: [ 22:25:33:630 ] [ Document ] - Processing blank line. VERBOSE: [ 22:25:33:634 ] [ Document ] - Processing image 'Microsoft Logo'. VERBOSE: [ 22:25:33:653 ] [ Document ] - Processing blank line. VERBOSE: [ 22:25:33:654 ] [ Document ] - Processing paragraph 'Microsoft AD As Built Report'. VERBOSE: [ 22:25:33:655 ] [ Document ] - Processing blank line. VERBOSE: [ 22:25:33:656 ] [ Document ] - Processing table 'Cover Page'. VERBOSE: [ 22:25:33:658 ] [ Document ] - Processing page break. VERBOSE: [ 22:25:33:659 ] [ Document ] - Processing table of contents 'Table of Contents'. VERBOSE: [ 22:25:33:661 ] [ Document ] - Processing page break. WARNING: [ 22:25:33:662 ] [ Document ] - Please refer to the AsBuiltReport.Microsoft.AD github website for more detailed information about this project. WARNING: [ 22:25:33:663 ] [ Document ] - Do not forget to update your report configuration file after each new release. WARNING: [ 22:25:33:663 ] [ Document ] - Documentation: https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD WARNING: [ 22:25:33:664 ] [ Document ] - Issues or bug reporting: https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues WARNING: [ 22:25:33:736 ] [ Document ] - Installed AsBuiltReport.Microsoft.AD Version: 0.7.7 WARNING: [ 22:25:35:558 ] [ Document ] - New Update: AsBuiltReport.Microsoft.AD Version: 0.7.8 WARNING: [ 22:25:35:559 ] [ Document ] - To Update run: Update-Module -Name AsBuiltReport.Microsoft.AD -Force VERBOSE: [ 22:25:45:887 ] [ Document ] - Connecting to Domain Controller Server 'AD.xxx.xxx'. VERBOSE: [ 22:25:47:114 ] [ Document ] - Processing section 'xxx.xxx Active Directory Report' started. VERBOSE: [ 22:25:47:116 ] [ Document ] - Processing paragraph 'The following section provides a sum[..]'. VERBOSE: [ 22:25:47:117 ] [ Document ] - Processing blank line. VERBOSE: [ 22:25:47:117 ] [ Document ] - Forest InfoLevel set at 1. VERBOSE: [ 22:25:47:118 ] [ Document ] - Processing section 'Forest Information.' started. VERBOSE: [ 22:25:47:119 ] [ Document ] - Processing paragraph 'The following section provides a sum[..]'. VERBOSE: [ 22:25:47:120 ] [ Document ] - Processing blank line. VERBOSE: [ 22:25:47:121 ] [ Document ] - Discovering Active Directory forest information. VERBOSE: [ 22:25:47:229 ] [ Document ] - Discovered Active Directory information of forest xxx.xxx. VERBOSE: [ 22:25:47:827 ] [ Document ] - Collecting Active Directory information of forest xxx.xxx. VERBOSE: [ 22:25:47:832 ] [ Document ] - Processing table 'Forest Summary - xxx.xxx'. VERBOSE: [ 22:25:47:835 ] [ Document ] - Processing section 'Optional Features' started. VERBOSE: [ 22:25:47:836 ] [ Document ] - Discovering Optional Features enabled on forest xxx.xxx. VERBOSE: [ 22:25:47:877 ] [ Document ] - Discovered Optional Features enabled on forest xxx.xxx. VERBOSE: [ 22:25:47:879 ] [ Document ] - Collecting Optional Features 'Recycle Bin Feature' VERBOSE: [ 22:25:47:881 ] [ Document ] - Collecting Optional Features 'Privileged Access Management Feature' VERBOSE: [ 22:25:47:882 ] [ Document ] - Processing table 'Optional Features - xxx.xxx'. VERBOSE: [ 22:25:47:884 ] [ Document ] - Processing section 'Optional Features' completed. VERBOSE: [ 22:25:47:885 ] [ Document ] - Discovering Active Directory Sites information of forest xxx.xxx VERBOSE: [ 22:25:47:934 ] [ Document ] - Processing section 'Domain Sites' started. VERBOSE: [ 22:25:47:935 ] [ Document ] - Discovered Active Directory Sites information of forest xxx.xxx VERBOSE: [ 22:25:47:937 ] [ Document ] - Collecting 'Default-First-Site-Name' Site VERBOSE: [ 22:25:47:941 ] [ Document ] - Processing table 'Sites - xxx.xxx'. VERBOSE: [ 22:25:48:014 ] [ Document ] - Processing section 'Site Links' started. VERBOSE: [ 22:25:48:015 ] [ Document ] - Discovered Active Directory Sites Link information of forest xxx.xxx VERBOSE: [ 22:25:48:019 ] [ Document ] - Collecting 'DEFAULTIPSITELINK' Site Link VERBOSE: [ 22:25:48:057 ] [ Document ] - Processing table 'Site Links - xxx.xxx'. VERBOSE: [ 22:25:48:060 ] [ Document ] - Processing section 'Site Links' completed. VERBOSE: [ 22:25:48:062 ] [ Document ] - Processing section 'Domain Sites' completed. VERBOSE: [ 22:25:48:063 ] [ Document ] - Processing section 'Forest Information.' completed. VERBOSE: [ 22:25:48:063 ] [ Document ] - Processing section 'Active Directory Domain Information' started. VERBOSE: [ 22:25:48:064 ] [ Document ] - Processing paragraph 'The following section provides a sum[..]'. VERBOSE: [ 22:25:48:065 ] [ Document ] - Processing blank line. VERBOSE: [ 22:25:48:257 ] [ Document ] - Processing section 'xxx.xxx Root Domain Configuration' started. VERBOSE: [ 22:25:48:259 ] [ Document ] - Processing paragraph 'The following section provides a sum[..]'. VERBOSE: [ 22:25:48:263 ] [ Document ] - Processing blank line. VERBOSE: [ 22:25:48:264 ] [ Document ] - Discovering AD Domain information on forest xxx.xxx. VERBOSE: [ 22:25:48:519 ] [ Document ] - Discovered Active Directory Domain information of domain xxx.xxx. VERBOSE: [ 22:25:48:519 ] [ Document ] - Collecting Domain information of 'DC=sec,DC=lab'. VERBOSE: [ 22:25:48:998 ] [ Document ] - Processing table 'Domain Summary - xxx.xxx'. VERBOSE: [ 22:25:49:001 ] [ Document ] - Discovering Active Directory FSMO information of domain xxx.xxx. VERBOSE: [ 22:25:49:249 ] [ Document ] - Processing section 'Flexible Single Master Operations (FSMO)' started. VERBOSE: [ 22:25:49:251 ] [ Document ] - Discovered Active Directory FSMO information of domain xxx.xxx. VERBOSE: [ 22:25:49:254 ] [ Document ] - Processing table 'FSMO Server - xxx.xxx'. VERBOSE: [ 22:25:49:256 ] [ Document ] - Processing section 'Flexible Single Master Operations (FSMO)' completed. VERBOSE: [ 22:25:49:257 ] [ Document ] - Collecting AD Trust information of xxx.xxx. VERBOSE: [ 22:25:49:469 ] [ Document ] - Discovering AD Domain Objects information on forest xxx.xxx. VERBOSE: [ 22:25:49:470 ] [ Document ] - Processing section 'User Accounts in Active Directory' started. VERBOSE: [ 22:25:49:721 ] [ Document ] - Collecting User Accounts in Active Directory. VERBOSE: [ 22:25:49:723 ] [ Document ] - Processing table 'User Accounts in Active Directory - xxx.xxx'. VERBOSE: [ 22:25:49:728 ] [ Document ] - Processing section 'User Accounts in Active Directory' completed. VERBOSE: [ 22:25:49:728 ] [ Document ] - Processing section 'Status of Users Accounts' started. VERBOSE: [ 22:25:50:784 ] [ Document ] - Collecting User Accounts in Active Directory. VERBOSE: [ 22:25:50:787 ] [ Document ] - Processing table 'Status of User Accounts - xxx.xxx'. VERBOSE: [ 22:25:50:793 ] [ Document ] - Processing section 'Status of Users Accounts' completed. VERBOSE: [ 22:25:50:794 ] [ Document ] - Processing section 'Privileged Group Count' started. VERBOSE: [ 22:25:50:795 ] [ Document ] - Collecting Privileged Group in Active Directory. VERBOSE: [ 22:25:51:291 ] [ Document ] - Collecting Privileged Group Domain Admins with SID S-1-5-21-1865968635-3997348477-640712667-512 VERBOSE: [ 22:25:51:687 ] [ Document ] - Collecting Privileged Group Enterprise Admins with SID S-1-5-21-1865968635-3997348477-640712667-519 VERBOSE: [ 22:25:52:329 ] [ Document ] - Collecting Privileged Group Administrators with SID S-1-5-32-544 VERBOSE: [ 22:25:52:702 ] [ Document ] - Collecting Privileged Group Server Operators with SID S-1-5-32-549 VERBOSE: [ 22:25:53:104 ] [ Document ] - Collecting Privileged Group Remote Desktop Users with SID S-1-5-32-555 VERBOSE: [ 22:25:53:460 ] [ Document ] - Collecting Privileged Group Incoming Forest Trust Builders with SID S-1-5-32-557 VERBOSE: [ 22:25:53:840 ] [ Document ] - Collecting Privileged Group Key Admins with SID S-1-5-21-1865968635-3997348477-640712667-526 VERBOSE: [ 22:25:54:219 ] [ Document ] - Collecting Privileged Group Backup Operators with SID S-1-5-32-551 VERBOSE: [ 22:25:54:584 ] [ Document ] - Collecting Privileged Group Cert Publishers with SID S-1-5-21-1865968635-3997348477-640712667-517 VERBOSE: [ 22:25:54:977 ] [ Document ] - Collecting Privileged Group Print Operators with SID S-1-5-32-550 VERBOSE: [ 22:25:55:360 ] [ Document ] - Collecting Privileged Group Account Operators with SID S-1-5-32-548 VERBOSE: [ 22:25:55:746 ] [ Document ] - Collecting Privileged Group Schema Admins with SID S-1-5-21-1865968635-3997348477-640712667-518 VERBOSE: [ 22:25:56:212 ] [ Document ] - Processing table 'Privileged Group Count - xxx.xxx'. VERBOSE: [ 22:25:56:217 ] [ Document ] - Processing section 'Privileged Group Count' completed. VERBOSE: [ 22:25:56:218 ] [ Document ] - Processing section 'Computer Accounts in Active Directory' started. VERBOSE: [ 22:25:56:452 ] [ Document ] - Collecting Computer Accounts in Active Directory. VERBOSE: [ 22:25:56:454 ] [ Document ] - Processing table 'Computer Accounts in Active Directory - xxx.xxx'. VERBOSE: [ 22:25:56:459 ] [ Document ] - Processing section 'Computer Accounts in Active Directory' completed. VERBOSE: [ 22:25:56:459 ] [ Document ] - Processing section 'Status of Computer Accounts' started. VERBOSE: [ 22:25:56:670 ] [ Document ] - Collecting Status of Computer Accounts. VERBOSE: [ 22:25:56:671 ] [ Document ] - Processing table 'Status of Computer Accounts - xxx.xxx'. VERBOSE: [ 22:25:56:677 ] [ Document ] - Processing section 'Status of Computer Accounts' completed. VERBOSE: [ 22:25:56:678 ] [ Document ] - Processing section 'Operating Systems Count' started. VERBOSE: [ 22:25:56:679 ] [ Document ] - Collecting Operating Systems in Active Directory. VERBOSE: [ 22:25:56:901 ] [ Document ] - Processing table 'Operating System Count - xxx.xxx'. VERBOSE: [ 22:25:56:904 ] [ Document ] - Processing section 'Operating Systems Count' completed. VERBOSE: [ 22:25:56:905 ] [ Document ] - Processing section 'Default Domain Password Policy' started. VERBOSE: [ 22:25:56:906 ] [ Document ] - Collecting the Active Directory Default Domain Password Policy of domain . VERBOSE: [ 22:25:57:103 ] [ Document ] - Processing table 'Default Domain Password Policy - xxx.xxx'. VERBOSE: [ 22:25:57:106 ] [ Document ] - Processing section 'Default Domain Password Policy' completed. VERBOSE: [ 22:25:57:108 ] [ Document ] - Processing section 'Domain Controller Summary' started. VERBOSE: [ 22:25:57:109 ] [ Document ] - Processing paragraph 'The following section provides a sum[..]'. VERBOSE: [ 22:25:57:109 ] [ Document ] - Processing blank line. VERBOSE: [ 22:25:57:312 ] [ Document ] - Collecting AD Domain Controller information. VERBOSE: [ 22:25:57:313 ] [ Document ] - Discovering Active Directory Domain Controller information from xxx.xxx. VERBOSE: [ 22:25:57:320 ] [ Document ] - Collecting AD Domain Controller Summary information of AD.xxx.xxx. VERBOSE: [ 22:25:57:433 ] [ Document ] - Processing table 'Domain Controller Summary - xxx.xxx'. VERBOSE: [ 22:25:57:436 ] [ Document ] - Collecting AD Domain Controller NTDS information. VERBOSE: [ 22:25:57:438 ] [ Document ] - Processing section 'NTDS Information' started. VERBOSE: [ 22:25:57:439 ] [ Document ] - Discovering Active Directory Domain Controller information in xxx.xxx. VERBOSE: [ 22:25:57:443 ] [ Document ] - Collecting AD Domain Controller NTDS information for AD.xxx.xxx. VERBOSE: [ 22:25:58:484 ] [ Document ] - Processing table 'NTDS Database File Usage - xxx.xxx'. VERBOSE: [ 22:25:58:486 ] [ Document ] - Processing section 'NTDS Information' completed. VERBOSE: [ 22:25:58:489 ] [ Document ] - Collecting AD Domain Controller Time Source information. VERBOSE: [ 22:25:58:489 ] [ Document ] - Processing section 'Time Source Information' started. VERBOSE: [ 22:25:58:491 ] [ Document ] - Discovering Active Directory Domain Controller information in xxx.xxx. VERBOSE: [ 22:25:58:494 ] [ Document ] - Collecting AD Domain Controller Time Source information for AD.xxx.xxx. VERBOSE: [ 22:25:59:423 ] [ Document ] - Processing table 'Time Source Configuration - xxx.xxx'. VERBOSE: [ 22:25:59:427 ] [ Document ] - Processing section 'Time Source Information' completed. VERBOSE: [ 22:25:59:427 ] [ Document ] - Processing section 'Infrastructure Services Status' started. VERBOSE: [ 22:25:59:429 ] [ Document ] - Processing paragraph 'The following section provides a sum[..]'. VERBOSE: [ 22:25:59:433 ] [ Document ] - Discovering Active Directory DC Infrastructure Services information of AD.xxx.xxx. VERBOSE: [ 22:25:59:434 ] [ Document ] - Discovering AD Domain Controller Infrastructure Services information for AD.xxx.xxx. VERBOSE: [ 22:26:00:254 ] [ Document ] - Discovered Active Directory DC Infrastructure Services information of AD.xxx.xxx. VERBOSE: [ 22:26:00:256 ] [ Document ] - Processing section 'AD' started. VERBOSE: [ 22:26:00:325 ] [ Document ] - Collecting Domain Controller 'DHCP Server' Services status on AD.xxx.xxx. VERBOSE: [ 22:26:00:359 ] [ Document ] - Collecting Domain Controller 'DNS Server' Services status on AD.xxx.xxx. VERBOSE: [ 22:26:00:390 ] [ Document ] - Collecting Domain Controller 'DFS Replication' Services status on AD.xxx.xxx. VERBOSE: [ 22:26:00:421 ] [ Document ] - Collecting Domain Controller 'Intersite Messaging' Services status on AD.xxx.xxx. VERBOSE: [ 22:26:00:453 ] [ Document ] - Collecting Domain Controller 'Kerberos Key Distribution Center' Services status on AD.xxx.xxx. VERBOSE: [ 22:26:00:483 ] [ Document ] - Collecting Domain Controller 'NetLogon' Services status on AD.xxx.xxx. VERBOSE: [ 22:26:00:512 ] [ Document ] - Collecting Domain Controller 'Active Directory Domain Services' Services status on AD.xxx.xxx. VERBOSE: [ 22:26:00:538 ] [ Document ] - Collecting Domain Controller 'Windows Time' Services status on AD.xxx.xxx. VERBOSE: [ 22:26:00:564 ] [ Document ] - Collecting Domain Controller 'Active Directory Web Services' Services status on AD.xxx.xxx. VERBOSE: [ 22:26:00:592 ] [ Document ] - Collecting Domain Controller 'Remote Procedure Call (RPC)' Services status on AD.xxx.xxx. VERBOSE: [ 22:26:00:619 ] [ Document ] - Collecting Domain Controller 'COM+ Event System' Services status on AD.xxx.xxx. VERBOSE: [ 22:26:00:648 ] [ Document ] - Collecting Domain Controller 'DNS Client' Services status on AD.xxx.xxx. VERBOSE: [ 22:26:00:675 ] [ Document ] - Collecting Domain Controller 'Security Accounts Manager' Services status on AD.xxx.xxx. VERBOSE: [ 22:26:00:702 ] [ Document ] - Collecting Domain Controller 'WORKSTATION' Services status on AD.xxx.xxx. VERBOSE: [ 22:26:00:703 ] [ Document ] - Processing table 'Infrastructure Services Status - AD'. VERBOSE: [ 22:26:00:724 ] [ Document ] - Processing section 'AD' completed. VERBOSE: [ 22:26:00:725 ] [ Document ] - Processing section 'Infrastructure Services Status' completed. VERBOSE: [ 22:26:00:728 ] [ Document ] - Collecting AD Domain Sites Replication information. VERBOSE: [ 22:26:00:729 ] [ Document ] - Collecting AD Domain Sites Replication Summary. (Sites Replication Connection) VERBOSE: [ 22:26:00:899 ] [ Document ] - Discovering Active Directory Sites Replication information on xxx.xxx. (Sites Replication) VERBOSE: [ 22:26:00:900 ] [ Document ] - Processing section 'Sites Replication Connection' started. VERBOSE: [ 22:26:00:904 ] [ Document ] - Processing paragraph 'The following section provides detai[..]'. VERBOSE: [ 22:26:00:905 ] [ Document ] - Processing blank line. VERBOSE: [ 22:26:00:910 ] [ Document ] - Processing section 'AD' started. VERBOSE: [ 22:26:00:964 ] [ Document ] - Processing section 'AD' completed. VERBOSE: [ 22:26:00:965 ] [ Document ] - Processing section 'Sites Replication Connection' completed. VERBOSE: [ 22:26:00:969 ] [ Document ] - Discovering Active Directory Group Policy Objects information for xxx.xxx. VERBOSE: [ 22:26:00:970 ] [ Document ] - Processing section 'Group Policy Objects Summary' started. VERBOSE: [ 22:26:00:971 ] [ Document ] - Processing paragraph 'The following section provides a sum[..]'. VERBOSE: [ 22:26:00:972 ] [ Document ] - Processing blank line. VERBOSE: [ 22:26:01:881 ] [ Document ] - Discovered Active Directory Group Policy Objects information on xxx.xxx. (Group Policy Objects) VERBOSE: [ 22:26:01:883 ] [ Document ] - Collecting Active Directory Group Policy Objects 'Default Domain Policy'. (Group Policy Objects) VERBOSE: [ 22:26:01:886 ] [ Document ] - Collecting Active Directory Group Policy Objects 'Default Domain Controllers Policy'. (Group Policy Objects) VERBOSE: [ 22:26:01:887 ] [ Document ] - Processing table 'GPO - xxx.xxx'. VERBOSE: [ 22:26:02:028 ] [ Document ] - Processing section 'Central Store Repository' started. VERBOSE: [ 22:26:02:030 ] [ Document ] - Discovered Active Directory Central Store information on xxx.xxx. (Central Store) VERBOSE: [ 22:26:02:033 ] [ Document ] - Processing table 'GPO Central Store - xxx.xxx'. VERBOSE: [ 22:26:02:035 ] [ Document ] - Processing section 'Central Store Repository' completed. VERBOSE: [ 22:26:02:036 ] [ Document ] - Discovered Active Directory Group Policy Objects information on xxx.xxx. (Group Policy Objects) VERBOSE: [ 22:26:05:867 ] [ Document ] - Discovered Active Directory Group Policy Objects information on xxx.xxx. (Group Policy Objects) VERBOSE: [ 22:26:06:039 ] [ Document ] - Processing section 'Group Policy Objects Summary' completed. VERBOSE: [ 22:26:06:040 ] [ Document ] - Discovering Active Directory Organizational Unit information on domain xxx.xxx VERBOSE: [ 22:26:06:083 ] [ Document ] - Discovered Active Directory Organizational Unit information on DC AD.xxx.xxx. (Organizational Unit) VERBOSE: [ 22:26:06:311 ] [ Document ] - Processing section 'Organizational Units' started. VERBOSE: [ 22:26:06:313 ] [ Document ] - Processing paragraph 'The following section provides a sum[..]'. VERBOSE: [ 22:26:06:316 ] [ Document ] - Processing blank line. VERBOSE: [ 22:26:06:317 ] [ Document ] - Collecting information of Active Directory Organizational Unit OU=Domain Controllers,DC=sec,DC=lab. VERBOSE: [ 22:26:06:645 ] [ Document ] - Collecting linked GPO: 'Default Domain Controllers Policy' on Organizational Unit OU=Domain Controllers,DC=sec,DC=lab. VERBOSE: [ 22:26:06:734 ] [ Document ] - Processing table 'Organizational Unit - xxx.xxx'. VERBOSE: [ 22:26:06:740 ] [ Document ] - Processing section 'Organizational Units' completed. VERBOSE: [ 22:26:06:741 ] [ Document ] - Processing section 'Domain Controller Summary' completed. VERBOSE: [ 22:26:06:743 ] [ Document ] - Processing section 'xxx.xxx Root Domain Configuration' completed. Get-ADDomain: Cannot validate argument on parameter 'Identity'. The Identity property on the argument is null or empty. VERBOSE: [ 22:26:06:900 ] [ Document ] - Processing section 'Active Directory Domain Information' completed. VERBOSE: [ 22:26:06:904 ] [ Document ] - Processing section 'Domain Name System Summary' started. VERBOSE: [ 22:26:06:905 ] [ Document ] - Processing paragraph 'The following section provides a sum[..]'. VERBOSE: [ 22:26:06:906 ] [ Document ] - Processing blank line. VERBOSE: [ 22:26:07:044 ] [ Document ] - Processing section 'xxx.xxx Root Domain DNS Configuration' started. VERBOSE: [ 22:26:07:046 ] [ Document ] - Processing paragraph 'The following section provides a con[..]'. VERBOSE: [ 22:26:07:049 ] [ Document ] - Processing blank line. VERBOSE: [ 22:26:07:049 ] [ Document ] - Discovering Active Directory Domain Name System Infrastructure information for xxx.xxx VERBOSE: [ 22:26:07:231 ] [ Document ] - Processing section 'Infrastructure Summary' started. VERBOSE: [ 22:26:07:234 ] [ Document ] - Processing paragraph 'The following section provides a sum[..]'. VERBOSE: [ 22:26:07:237 ] [ Document ] - Processing blank line. VERBOSE: [ 22:26:07:241 ] [ Document ] - Collecting Domain Name System Infrastructure information from 'AD.xxx.xxx'. VERBOSE: [ 22:26:07:432 ] [ Document ] - Processing table 'Infrastructure Summary - xxx.xxx'. VERBOSE: [ 22:26:07:435 ] [ Document ] - Processing section 'Forwarder Options' started. VERBOSE: [ 22:26:07:441 ] [ Document ] - Collecting Forwarder Options information from AD.xxx.xxx. VERBOSE: [ 22:26:07:517 ] [ Document ] - Processing table 'Forwarders - xxx.xxx'. VERBOSE: [ 22:26:07:519 ] [ Document ] - Processing section 'Forwarder Options' completed. VERBOSE: [ 22:26:07:522 ] [ Document ] - Processing section 'Infrastructure Summary' completed. VERBOSE: [ 22:26:08:078 ] [ Document ] - Discovering Actve Directory Domain Name System Zone information on xxx.xxx. VERBOSE: [ 22:26:08:144 ] [ Document ] - Processing section 'AD DNS Zones' started. VERBOSE: [ 22:26:08:146 ] [ Document ] - Discovered Actve Directory Domain Controller: AD.xxx.xxx. (Domain Name System Zone) VERBOSE: [ 22:26:08:149 ] [ Document ] - Collecting Actve Directory DNS Zone: '_msdcs.xxx.xxx' on AD.xxx.xxx VERBOSE: [ 22:26:08:150 ] [ Document ] - Collecting Actve Directory DNS Zone: 'xxx.xxx' on AD.xxx.xxx VERBOSE: [ 22:26:08:152 ] [ Document ] - Collecting Actve Directory DNS Zone: 'TrustAnchors' on AD.xxx.xxx VERBOSE: [ 22:26:08:155 ] [ Document ] - Processing table 'Zones - xxx.xxx'. VERBOSE: [ 22:26:08:186 ] [ Document ] - Processing section 'Reverse Lookup Zone' started. VERBOSE: [ 22:26:08:187 ] [ Document ] - Discovered Actve Directory Domain Controller: AD.xxx.xxx (Domain Name System Zone) VERBOSE: [ 22:26:08:190 ] [ Document ] - Collecting Actve Directory DNS Zone: '0.in-addr.arpa' on AD.xxx.xxx VERBOSE: [ 22:26:08:192 ] [ Document ] - Collecting Actve Directory DNS Zone: '127.in-addr.arpa' on AD.xxx.xxx VERBOSE: [ 22:26:08:194 ] [ Document ] - Collecting Actve Directory DNS Zone: '255.in-addr.arpa' on AD.xxx.xxx VERBOSE: [ 22:26:08:195 ] [ Document ] - Processing table 'Zones - xxx.xxx'. VERBOSE: [ 22:26:08:198 ] [ Document ] - Processing section 'Reverse Lookup Zone' completed. VERBOSE: [ 22:26:08:220 ] [ Document ] - Processing section 'AD DNS Zones' completed. VERBOSE: [ 22:26:08:229 ] [ Document ] - Processing section 'xxx.xxx Root Domain DNS Configuration' completed. Get-ADDomain: Cannot validate argument on parameter 'Identity'. The Identity property on the argument is null or empty. VERBOSE: [ 22:26:08:262 ] [ Document ] - Processing section 'Domain Name System Summary' completed. Get-DhcpServerInDC: Cannot process argument transformation on parameter 'CimSession'. Cannot convert the "CimSession: AD.xxx.xxx" value of type "Deserialized.Microsoft.Management.Infrastructure.CimSession" to type "Microsoft.Management.Infrastructure.CimSession[]". New-AsBuiltReport: The term 'Get-CertificationAuthority' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

This is the output from the server itself (success) - with no changes to the report configuration

VERBOSE: As Built Report configuration file not saved. VERBOSE: Config.Report.Author = Administrator VERBOSE: Config.UserFolder.Path = VERBOSE: Config.Company.FullName = VERBOSE: Config.Company.Contact = VERBOSE: Config.Company.Phone = VERBOSE: Config.Company.Email = VERBOSE: Config.Company.ShortName = VERBOSE: Config.Company.Address = VERBOSE: Config.Email.Port = VERBOSE: Config.Email.Credentials = VERBOSE: Config.Email.Server = VERBOSE: Config.Email.To = VERBOSE: Config.Email.From = VERBOSE: Config.Email.UseSSL = VERBOSE: Config.Email.Body = VERBOSE: Populating RepositorySourceLocation property for module AsBuiltReport.Microsoft.Windows. VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AsBuiltReport.Microsoft.Windows\0.3.0\AsBuiltReport.Microsoft.Windows.psm1'. VERBOSE: Loading AsBuiltReport.Microsoft.Windows report configuration file from path 'C:\Users\Administrator\AsBuiltReport\AsBuiltReport.Microsoft.AD.json'. VERBOSE: Setting report filename to 'Microsoft AD As Built Report'. VERBOSE: [ 22:40:40:080 ] [ Document ] - Document 'Microsoft AD As Built Report' processing started. VERBOSE: [ 22:40:40:158 ] [ Document ] - Executing report style script from path 'C:\Program Files\WindowsPowerShell\Modules\AsBuiltReport.Microsoft.Windows\0.3.0\AsBuiltReport.Microsoft.Windows.Style.ps1'. VERBOSE: [ 22:40:40:187 ] [ Document ] - Setting global document options. VERBOSE: [ 22:40:40:190 ] [ Document ] - Enabling section/heading numbering. VERBOSE: [ 22:40:40:192 ] [ Document ] - Setting default font(s) to 'Arial'. VERBOSE: [ 22:40:40:194 ] [ Document ] - Setting page top margin to '25.05'mm. VERBOSE: [ 22:40:40:196 ] [ Document ] - Setting page right margin to '25.05'mm. VERBOSE: [ 22:40:40:200 ] [ Document ] - Setting page bottom margin to '25.05'mm. VERBOSE: [ 22:40:40:210 ] [ Document ] - Setting page left margin to '25.05'mm. VERBOSE: [ 22:40:40:215 ] [ Document ] - Setting page size to 'A4'. VERBOSE: [ 22:40:40:219 ] [ Document ] - Setting page orientation to 'Portrait'. VERBOSE: [ 22:40:40:223 ] [ Document ] - Setting page height to '297'mm. VERBOSE: [ 22:40:40:226 ] [ Document ] - Setting page width to '210'mm. VERBOSE: [ 22:40:40:229 ] [ Document ] - Setting document style 'Title'. VERBOSE: [ 22:40:40:232 ] [ Document ] - Setting document style 'Title2'. VERBOSE: [ 22:40:40:235 ] [ Document ] - Setting document style 'Title3'. VERBOSE: [ 22:40:40:239 ] [ Document ] - Setting document style 'Heading1'. VERBOSE: [ 22:40:40:241 ] [ Document ] - Setting document style 'Heading2'. VERBOSE: [ 22:40:40:244 ] [ Document ] - Setting document style 'Heading3'. VERBOSE: [ 22:40:40:248 ] [ Document ] - Setting document style 'Heading4'. VERBOSE: [ 22:40:40:253 ] [ Document ] - Setting document style 'Heading5'. VERBOSE: [ 22:40:40:256 ] [ Document ] - Setting document style 'Normal'. VERBOSE: [ 22:40:40:260 ] [ Document ] - Setting document style 'Caption'. VERBOSE: [ 22:40:40:263 ] [ Document ] - Setting document style 'Header'. VERBOSE: [ 22:40:40:266 ] [ Document ] - Setting document style 'Footer'. VERBOSE: [ 22:40:40:269 ] [ Document ] - Setting document style 'TOC'. VERBOSE: [ 22:40:40:272 ] [ Document ] - Setting document style 'TableDefaultHeading'. VERBOSE: [ 22:40:40:279 ] [ Document ] - Setting document style 'TableDefaultRow'. VERBOSE: [ 22:40:40:282 ] [ Document ] - Setting document style 'Critical'. VERBOSE: [ 22:40:40:284 ] [ Document ] - Setting document style 'Warning'. VERBOSE: [ 22:40:40:287 ] [ Document ] - Setting document style 'Info'. VERBOSE: [ 22:40:40:292 ] [ Document ] - Setting document style 'OK'. VERBOSE: [ 22:40:40:297 ] [ Document ] - Setting table style 'TableDefault'. VERBOSE: [ 22:40:40:302 ] [ Document ] - Setting table style 'Borderless'. VERBOSE: [ 22:40:40:307 ] [ Document ] - Processing document header started. VERBOSE: [ 22:40:40:310 ] [ Document ] - Processing paragraph 'Microsoft AD As Built Report - v1.0'. VERBOSE: [ 22:40:40:313 ] [ Document ] - Processing document header completed. VERBOSE: [ 22:40:40:318 ] [ Document ] - Processing document footer started. VERBOSE: [ 22:40:40:323 ] [ Document ] - Processing paragraph 'Page <!# PageNumber #!>'. VERBOSE: [ 22:40:40:329 ] [ Document ] - Processing document footer completed. VERBOSE: [ 22:40:40:332 ] [ Document ] - Processing blank line. VERBOSE: [ 22:40:40:336 ] [ Document ] - Processing image 'Microsoft Logo'. VERBOSE: [ 22:40:40:346 ] [ Document ] - Processing blank line. VERBOSE: [ 22:40:40:349 ] [ Document ] - Processing paragraph 'Microsoft AD As Built Report'. VERBOSE: [ 22:40:40:357 ] [ Document ] - Processing blank line. VERBOSE: [ 22:40:40:360 ] [ Document ] - Processing table 'Cover Page'. VERBOSE: [ 22:40:40:370 ] [ Document ] - Processing page break. VERBOSE: [ 22:40:40:374 ] [ Document ] - Processing table of contents 'Table of Contents'. VERBOSE: [ 22:40:40:379 ] [ Document ] - Processing page break. VERBOSE: [ 22:40:40:383 ] [ Document ] - Processing section 'AD.xxx.xxx' started. VERBOSE: [ 22:40:40:391 ] [ Document ] - Processing paragraph 'The following table details the Wind[..]'. VERBOSE: [ 22:40:40:402 ] [ Document ] - Processing blank line. VERBOSE: [ 22:40:59:317 ] [ Document ] - Hardware InfoLevel set at . VERBOSE: [ 22:40:59:320 ] [ Document ] - Collecting Host Inventory information. VERBOSE: [ 22:40:59:330 ] [ Document ] - Networking InfoLevel set at . VERBOSE: [ 22:40:59:334 ] [ Document ] - Collecting Host Firewall information. VERBOSE: [ 22:41:00:835 ] [ Document ] - Processing section 'DHCP Server Configuration Settings' started. VERBOSE: [ 22:41:00:839 ] [ Document ] - Processing paragraph 'The following table details the DHCP[..]'. VERBOSE: [ 22:41:00:844 ] [ Document ] - Processing blank line. VERBOSE: [ 22:41:00:852 ] [ Document ] - DHCP InfoLevel set at 1. VERBOSE: [ 22:41:00:855 ] [ Document ] - Collecting Host DHCP Server information. VERBOSE: [ 22:41:01:066 ] [ Document ] - Processing table 'DHCP Servers Settings - AD'. VERBOSE: [ 22:41:01:078 ] [ Document ] - DHCP InfoLevel set at 1. VERBOSE: [ 22:41:01:086 ] [ Document ] - Collecting Host DHCP Server information. VERBOSE: [ 22:41:01:111 ] [ Document ] - Processing section 'Service Statistics' started. VERBOSE: [ 22:41:01:116 ] [ Document ] - Processing table 'DHCP Server Statistics - AD'. VERBOSE: [ 22:41:01:121 ] [ Document ] - Processing section 'Service Statistics' completed. VERBOSE: [ 22:41:01:126 ] [ Document ] - DHCP InfoLevel set at 1. VERBOSE: [ 22:41:01:129 ] [ Document ] - Collecting Host DHCP Server information. VERBOSE: [ 22:41:01:151 ] [ Document ] - Discovered '0' DHCP SCopes in AD. VERBOSE: [ 22:41:01:154 ] [ Document ] - DHCP InfoLevel set at 1. VERBOSE: [ 22:41:01:157 ] [ Document ] - Collecting Host DHCP Server information. VERBOSE: [ 22:41:01:177 ] [ Document ] - DHCP InfoLevel set at 1. VERBOSE: [ 22:41:01:179 ] [ Document ] - Collecting Host DHCP Server Scope information. VERBOSE: [ 22:41:01:193 ] [ Document ] - Processing section 'DHCP Server Configuration Settings' completed. VERBOSE: [ 22:41:01:679 ] [ Document ] - Processing section 'DNS Server Configuration Settings' started. VERBOSE: [ 22:41:01:682 ] [ Document ] - Processing paragraph 'The following table details the DNS [..]'. VERBOSE: [ 22:41:01:685 ] [ Document ] - Processing blank line. VERBOSE: [ 22:41:01:691 ] [ Document ] - DNS InfoLevel set at 1. VERBOSE: [ 22:41:01:694 ] [ Document ] - Collecting Host DNS Server information. VERBOSE: [ 22:41:01:870 ] [ Document ] - Processing table 'DNS Servers Settings - AD'. VERBOSE: [ 22:41:01:881 ] [ Document ] - Processing section 'Forwarder Options' started. VERBOSE: [ 22:41:01:889 ] [ Document ] - Processing paragraph 'The following table details forwarde[..]'. VERBOSE: [ 22:41:01:892 ] [ Document ] - Processing blank line. VERBOSE: [ 22:41:01:941 ] [ Document ] - Processing table 'Forwarders - AD'. VERBOSE: [ 22:41:01:947 ] [ Document ] - Processing section 'Forwarder Options' completed. VERBOSE: [ 22:41:01:956 ] [ Document ] - DNS InfoLevel set at 1. VERBOSE: [ 22:41:01:960 ] [ Document ] - Collecting Host DNS Server information. VERBOSE: [ 22:41:01:991 ] [ Document ] - Processing section 'DNS Zone Configuration' started. VERBOSE: [ 22:41:01:994 ] [ Document ] - Processing paragraph 'The following table details zones co[..]'. VERBOSE: [ 22:41:02:002 ] [ Document ] - Processing blank line. VERBOSE: [ 22:41:02:005 ] [ Document ] - Collecting Actve Directory DNS Zone: '_msdcs.xxx.xxx' on VERBOSE: [ 22:41:02:007 ] [ Document ] - Collecting Actve Directory DNS Zone: 'xxx.xxx' on VERBOSE: [ 22:41:02:010 ] [ Document ] - Collecting Actve Directory DNS Zone: 'TrustAnchors' on VERBOSE: [ 22:41:02:013 ] [ Document ] - Processing table 'Zones - AD'. VERBOSE: [ 22:41:02:029 ] [ Document ] - Processing section 'Reverse Lookup Zone Configuration' started. VERBOSE: [ 22:41:02:032 ] [ Document ] - Processing paragraph 'The following table details reverse [..]'. VERBOSE: [ 22:41:02:034 ] [ Document ] - Processing blank line. VERBOSE: [ 22:41:02:036 ] [ Document ] - Collecting Actve Directory DNS Zone: '0.in-addr.arpa' VERBOSE: [ 22:41:02:041 ] [ Document ] - Collecting Actve Directory DNS Zone: '127.in-addr.arpa' VERBOSE: [ 22:41:02:044 ] [ Document ] - Collecting Actve Directory DNS Zone: '255.in-addr.arpa' VERBOSE: [ 22:41:02:046 ] [ Document ] - Processing table 'Zones - AD'. VERBOSE: [ 22:41:02:055 ] [ Document ] - Processing section 'Reverse Lookup Zone Configuration' completed. VERBOSE: [ 22:41:02:066 ] [ Document ] - Processing section 'DNS Zone Configuration' completed. VERBOSE: [ 22:41:02:069 ] [ Document ] - Processing section 'DNS Server Configuration Settings' completed. VERBOSE: [ 22:41:02:074 ] [ Document ] - Processing section 'AD.xxx.xxx' completed. VERBOSE: [ 22:41:02:082 ] [ Document ] - Document 'Microsoft AD As Built Report' processing completed. VERBOSE: [ 22:41:02:111 ] [ Document ] - Total processing time '22.03' seconds. Microsoft Windows As Built Report 'Microsoft AD As Built Report' has been saved to 'C:\Users\Administrator\Documents'.

rebelinux commented 2 years ago

The report executed from the server is a different report:

AsBuiltReport.Microsoft.Windows VERBOSE: Loading module from path 'C:\Program Files\WindowsPowerShell\Modules\AsBuiltReport.Microsoft.Windows\0.3.0\AsBuiltReport.Microsoft.Windows.psm1*.

rebelinux commented 2 years ago

Get-ADDomain: Cannot validate argument on parameter 'Identity'. The Identity property on the argument is null or empty.

The AD is a single domain infrastructure or a forest with multi-domains?

rebelinux commented 2 years ago

Can you share the following command outputs?

Get-ADForest Get-ADDomain

SA-del-alt commented 2 years ago

PS C:\Users\Administrator> Get-ADForest

ApplicationPartitions : {DC=ForestDnsZones,DC=xxx,DC=xxx, DC=DomainDnsZones,DC=xxx,DC=xxx} CrossForestReferences : {} DomainNamingMaster : AD.xxx.xxx Domains : {xxx.xxx} ForestMode : Windows2016Forest GlobalCatalogs : {AD.xxx.xxx} Name : xxx.xxx PartitionsContainer : CN=Partitions,CN=Configuration,DC=xxx,DC=xxx RootDomain : xxx.xxx SchemaMaster : AD.xxx.xxx Sites : {Default-First-Site-Name} SPNSuffixes : {} UPNSuffixes : {}

PS C:\Users\Administrator> Get-ADDomain

AllowedDNSSuffixes : {} ChildDomains : {} ComputersContainer : CN=Computers,DC=xxx,DC=xxx DeletedObjectsContainer : CN=Deleted Objects,DC=xxx,DC=xxx DistinguishedName : DC=xxx,DC=xxx DNSRoot : xxx.xxx DomainControllersContainer : OU=Domain Controllers,DC=xxx,DC=xxx DomainMode : Windows2016Domain DomainSID : S-1-5-21-1865968635-3997348477-640712667 ForeignxxxurityPrincipalsContainer : CN=ForeignxxxurityPrincipals,DC=xxx,DC=xxx Forest : xxx.xxx InfrastructureMaster : AD.xxx.xxx LastLogonReplicationInterval : LinkedGroupPolicyObjects : {CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=xxx,DC=xxx} LostAndFoundContainer : CN=LostAndFound,DC=xxx,DC=xxx ManagedBy : Name : xxx NetBIOSName : xxx ObjectClass : domainDNS ObjectGUID : 890d965d-2837-4101-801c-f7424e2d57a9 ParentDomain : PDCEmulator : AD.xxx.xxx PublicKeyRequiredPasswordRolling : True QuotasContainer : CN=NTDS Quotas,DC=xxx,DC=xxx ReadOnlyReplicaDirectoryServers : {} ReplicaDirectoryServers : {AD.xxx.xxx} RIDMaster : AD.xxx.xxx SubordinateReferences : {DC=ForestDnsZones,DC=xxx,DC=xxx, DC=DomainDnsZones,DC=xxx,DC=xxx, CN=Configuration,DC=xxx,DC=xxx} SystemsContainer : CN=System,DC=xxx,DC=xxx UsersContainer : CN=Users,DC=xxx,DC=xxx

rebelinux commented 2 years ago

I think I have found the problem. It is related to the single domain forest. A simple IF statement solves the problem. I hope so lol

The fix will be available on v0.7.9.

SA-del-alt commented 2 years ago

👍

https://aka.ms/AAb9ysg


From: Jonathan Colon @.> Sent: Friday, October 7, 2022 7:14:25 AM To: AsBuiltReport/AsBuiltReport.Microsoft.AD @.> Cc: Anany, Shai @.>; Manual @.> Subject: Re: [AsBuiltReport/AsBuiltReport.Microsoft.AD] Unable to run report (Issue #69)

[EXTERNAL EMAIL]

I think I have found the problem. It is related to the single domain forest. A simple IF statement solves the problem. I hope so lol

The fix will be available on v0.7.9.

— Reply to this email directly, view it on GitHub [github.com]https://urldefense.com/v3/__https://github.com/AsBuiltReport/AsBuiltReport.Microsoft.AD/issues/69*issuecomment-1271089664__;Iw!!LpKI!iKhKPJ6fyhv4P-uwZFcFl8TT-r4M8ejguDc0Mu2xuljLySqVEkDcnJ7Cr7pC1VkDKEFnn2ECsyXBpE9NsTQcEbU$, or unsubscribe [github.com]https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/A3MLD5M43CNVHQX4Z4XXW4TWB6PSDANCNFSM6AAAAAAQ3C76UM__;!!LpKI!iKhKPJ6fyhv4P-uwZFcFl8TT-r4M8ejguDc0Mu2xuljLySqVEkDcnJ7Cr7pC1VkDKEFnn2ECsyXBpE9NF2ROfQs$. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Internal Use - Confidential