Skip to content
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

Setting Name does not export properly on some tables #174

Closed
DesmondBellingerSolvus opened this issue Nov 9, 2023 · 10 comments
Closed

Setting Name does not export properly on some tables #174

DesmondBellingerSolvus opened this issue Nov 9, 2023 · 10 comments

Comments

@DesmondBellingerSolvus
Copy link

Hello we have been using this tool for documentation of our intune environment and we have been loving it so far. The one issue that I have been having is that on some of the tables generated by the where the format is [Name | Value] or [Name | Status | Value], the name does not export, leaving the cell blank.

I've tried exporting to both word and html with the same result.

Below is an exported word doc showing the missing names
Documentation-2023-11-09.docx

@Micke-K
Copy link
Owner

Micke-K commented Nov 10, 2023

Hello!

I had a look at this. I cannot reproduce this. I tried with both built in Administrative Template settings policy and a policy form an imported ADMX file.

Something is wrong because there is no Category row. Not sure how that would happen either.

What Output Properties and Output Level do you use?

Is it the same result if you do a HTML output? I'm trying to figure out if the problem is the collector or the output provider.

Cheers!

@DesmondBellingerSolvus
Copy link
Author

Thanks for the quick reply. The output is identical no matter what format I select. Where would I be able to see the output level and properties?
image
Settings file.json
I've attached an export of the application settings as well as an image of the Output settings tab.

@Micke-K
Copy link
Owner

Micke-K commented Nov 10, 2023

Hello,

If you get the same issue on HTML etc. then there is an issue when collecting information. Do you document from Intune or from an exported folder. If you document from exported folder, are you logged in to the same tenant as the export?

Do you only get this on Administrative Templates or other policies as well?

Output level and Properties is only available for the Word Output provider.

Cheers!

@Micke-K
Copy link
Owner

Micke-K commented Nov 11, 2023

Hello,

Can you try this? Documentation would not work when swapping between tenants. If that is what you did.

Cheers!

Documentation.zip

@DesmondBellingerSolvus
Copy link
Author

DesmondBellingerSolvus commented Nov 13, 2023

Hi just to answer your questions: we are documenting directly from Intune.
The issue does only seem to affect Administrative Templates profiles.
I placed the file above in the extensions folder but it seems like I'm still getting the same results.

We're only working in a single tenant and I've been logged into the same one for the entirety of this process.

@Micke-K
Copy link
Owner

Micke-K commented Nov 14, 2023

Hello!

That is very strange. I kind of know what's happening but can't explain it. The script uses an API to get settings information for ADMX policies and for some reason that is not working in your environment. Any hints in the log file? There should be graph errors if an API call fails.

Cheers!

@DesmondBellingerSolvus
Copy link
Author

Looking at the logs I see a few errors:

This one as a log in:
Missing scopes: User.ReadWrite.All,Policy.Read.All,Policy.ReadWrite.ConditionalAccess,Application.Read.All,Agreement.ReadWrite.All,Organization.ReadWrite.All,CloudPC.ReadWrite.All

And one as documentation is attempted:
Failed to invoke MS Graph with URL https://graph.microsoft.com/beta/deviceManagement/groupPolicyDefinitions('5efa5eff-a8f6-46ba-a7cb-4e6d77631754') (Request ID: eee22664-dec8-4972-92b9-4c53e1b61f8f). Status code: Unauthorized. Response message: Access token validation failure. Invalid audience. Exception: The remote server returned an error: (401) Unauthorized.

The above error occurs 3 times followed by this:
Could not find definition for definition id ''. Values might be documented in the wrong order!

The section documented was the same one that I originally attached.

@Micke-K
Copy link
Owner

Micke-K commented Nov 19, 2023

Hello,

Thank you for that. It explains the issue and I think I found the reason behind it. It's hard for me to test and verify since this would only happen in GCC environments (+ all other non-public environments).

Can you try this version?

Cheers!

Documentation.zip

@DesmondBellingerSolvus
Copy link
Author

That worked, thank you very much!

@DesmondBellingerSolvus
Copy link
Author

Just following up on the issue, after making a successful export of all of our Intune information, I checked the logs again and noticed that there were still quite a few Graph errors being thrown. Given the fact that it's probably hard to test outside of commercial, I figured you might be interested in the snippet of log file from that export.
Log11-20.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants