Open Manbearpiet opened 4 years ago
Feel like doing a PR on this?
On Sat, 1 Aug 2020, 5:15 am Manbearpiet, notifications@github.com wrote:
Reopened #4 https://github.com/tabs-not-spaces/Intune.Reporting/issues/4 .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/tabs-not-spaces/Intune.Reporting/issues/4#event-3609905985, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIDA4LNRKOAWTI6MVTQ2F3TR6MJ6LANCNFSM4OW4UAFQ .
Sorry I derped in the github app, I missclicked and closed it. Will suggest a PR next week ;).
Op za 1 aug. 2020 04:07 schreef Ben R. notifications@github.com:
Feel like doing a PR on this?
On Sat, 1 Aug 2020, 5:15 am Manbearpiet, notifications@github.com wrote:
Reopened #4 < https://github.com/tabs-not-spaces/Intune.Reporting/issues/4> .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub < https://github.com/tabs-not-spaces/Intune.Reporting/issues/4#event-3609905985 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/AIDA4LNRKOAWTI6MVTQ2F3TR6MJ6LANCNFSM4OW4UAFQ
.
— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/tabs-not-spaces/Intune.Reporting/issues/4#issuecomment-667452080, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKPUQKL25HBVQSTPWGLF7HLR6N2HPANCNFSM4OW4UAFQ .
Sorry to wake this up after two years, i can see that it is still a challenge or did i do it wrong by installing the module, using the PSGallery?
Description
After your awesome demo yesterday (again thanks), I tried to test on one of our test tenants, where I have the Global Administrator role. However if I use the reporting function without a filter it fails to report specific settings. If you think what a mess, this is my second issue ever haha.
Steps to reproduce
The endpoint security bit is here https://github.com/tabs-not-spaces/Intune.Reporting/blob/096cef7a952500e733523d227ef1d6a59ae08ac1/Intune.Reporting/Public/Build-IntuneConfigReport.ps1#L147-L185
In the loop after
Get-EndpointSecurityPolicyDetailsa
a few of the$s
have no $s.displayName (when I run it): It throws on this specific line https://github.com/tabs-not-spaces/Intune.Reporting/blob/096cef7a952500e733523d227ef1d6a59ae08ac1/Intune.Reporting/Public/Build-IntuneConfigReport.ps1#L169This occurs in my test tenant on the following settings:
What is odd that these are not all endpoint security policies
Everything works fine if I leave the
endpointSecurityPolicy
out of itEnvironment data
Module versions
Debug output
Error output
Suggestion
I tried setting the name to the definitionId that does enable me to finish the cmdlet without the filter and get the results (while skewed with the different name. This could a not so swell way to let the script finish.
Another way I think this coulde be solved is by creating a switch statement capturing all the specific definitionIds with custom definitions, but that'd be a bit laborintensive.
PS: sorry for the spaces in the code, the browser doesn't support tabs :(.