-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while running the script #98
Comments
Hello: can you tell me which specific table in the report you are referring to? thanks! |
The Users Object Count Pie Chart and Table - 1.2.1.3.3. |
Thanks for the info, could you share with me the other script you run to compare the numbers? |
I kept it simple |
I have done a test on a larger environment than yours and I can't reproduce the error. However, I made some changes in the code to see if it can help to avoid this type of error.
Another question is if you executed the command with the EnableHealthCheck option? |
I have gotten the error with and without the EnableHealthCheck option. Its weird that you didn't get the same error. If I update my module will the changes you made be downloaded? |
I analyzed this situation in depth and was able to recreate the issue. I found that the error is caused when the powershell process consumes too much memory caused by the excessive amount of objects it has to process. As much as I have improved the code I have not found a way through powershell to correct the error because most of the time it works but in certain occasions the error is displayed. |
I greatly appreciate your efforts. If you need someone to help test any changes please let me know. |
v0.7.13 is out with a lot of changes! |
I updated PSPKI to version 4.0.0.0 with no problems. Additionally I ran the report with that version and didn't encounter any issues. |
I got the same certificate error when I attempted to run the PSPKI update as well. You didn't get that error for either? |
When I did the update on one of my computers I did not get that error. I have seen this error in other powershell modules and it is a known PowerShellGet issue. PowerShell/PowerShellGetv2#650 The use of the -SkipPublisherCheck parameter solves the problem. However, I will modify the README file to include a comment on this possible issue. Thank you. |
Any opinion on this matter? |
Bug description
While running any cmdlet to generate the AD report I get the error:
the server has returned the following error invalid enumeration context while running Get-Aduser
Command-line input
New-AsBuiltReport -Report Microsoft.AD -Target 'admin-dc-01v.contoso.local' -Username '[email protected]' -Password 'P@ssw0rd' -Format Html,Word -OutputFolderPath 'C:\Users\Jon\Documents' -Timestamp
Steps to reproduce
The error occurs after running
New-AsBuiltReport -Report Microsoft.AD -Target 'admin-dc-01v.contoso.local' -Username '[email protected]' -Password 'P@ssw0rd' -Format Html,Word -OutputFolderPath 'C:\Users\Jon\Documents' -Timestamp
Expected behaviour
Script should run to completion with no errors.
Screenshots
No response
Operating System
Windows Server 2019
PowerShell Version
5.1.22621.963
PowerShell Modules
Additional Context
The script does complete after the error occurs. i believe it is caused by the number of users the
Get-ADUser
cmdlet has to parsewhich is roughly 265000 users. I ran another script to validate the user object count and found that the difference in the value was neglible but very close.
Before submitting
The text was updated successfully, but these errors were encountered: