Missing directory objects #253
Replies: 8 comments
-
|
Could you run the report again in the domain where the condition occurs, and when it finishes, check the $Error variable to validate if there are any hidden errors? $Error | more |
Beta Was this translation helpful? Give feedback.
-
|
Thx for the reply. I uploaded the error output in the shown below. (This is from a member server, got the same when I tried on a domain controller to see if it changed anything.) |
Beta Was this translation helpful? Give feedback.
-
|
This error appears constantly in the log: Could you check if this cmdlet produces any errors? Get-ADDomainController -Discover -Service ADWS I've seen this error when the account doesn't have the necessary permissions, or when the Domain Controller has replication or DNS problems. |
Beta Was this translation helpful? Give feedback.
-
|
The command gave a valid output in the format below. I replaced the info for my server/domain/site, but it was all correct. PS C:\Temp> Get-ADDomainController -Discover -Service ADWS Domain : ReplacedDomainName.NET |
Beta Was this translation helpful? Give feedback.
-
|
I have no idea why it's not working in your environment :( Could you send me the Get-AbrADDomainObject.ps1 that Claude modified? |
Beta Was this translation helpful? Give feedback.
-
|
Attached is the working code, works with both -DomainName and -DomainController as input. |
Beta Was this translation helpful? Give feedback.
-
|
Please validate if MokkaSchnalle recommendation fix your issue: Looking into the Get-ADDomainObjectStats file i can't find way to duplicate or fix the issue. |
Beta Was this translation helpful? Give feedback.
-
|
Thx for looking into it! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When running the report creator (New-AsBuiltReport) it do find the directory objects (user, group and computer) in some of my AD's, but in some these sections just show up blank in the report. No error output when running in verbose mode. I have used the same command line and config files in all domains. (Just changed the credentials.)
I then let Claude convert the code in Get-AbrADDomainObject.ps1 to a file that could run separately and all data are found and showed nicely in the table format.
Any idea what can be wrong not getting the directory objects in the full report?
Beta Was this translation helpful? Give feedback.
All reactions