Micke-K / IntuneManagement

Copy, export, import, delete, document and compare policies and profiles in Intune and Azure with PowerShell script and WPF UI. Import ADMX files and registry settings with ADMX ingestion. View and edit PowerShell script.
MIT License
1.07k stars 195 forks source link

Documentation Word #246

Closed UeliTri closed 1 month ago

UeliTri commented 3 months ago

Hello

Thank you very much for this valuable tool. It makes my work much easier.

Unfortunately I cannot get the Word export to run.

Error Faild to process object. It is not possible to call a method for an expression that has NULL.

What am I doing wrong? Thank you very much!

Micke-K commented 3 months ago

Hello,

Thank you for the support.

Can you upload the full log? There could be a lot of things that goes wrong. Can you log to HTML? Would be interesting to see if that output provider works. What policy are you trying to document? Any chance you can upload the json for it?

Cheers!

UeliTri commented 3 months ago

Hi, HTML works perfectly. It is a policy from the settings catalog. I have attached the log and json.

Kind regards Log.txt mtf365-W10-OneDrive-D-v10.json CloudAPIPowerShellManagement.log

Micke-K commented 3 months ago

Thank you for that!

It can register a Word COM object since there is no error about that, but it fails on InvokeMembers and other COM commands. It's like the properties and methods does not exist.

I noticed that you have German OS language. I wonder if that causes it. I can document Settings Catalog objects in English and German without issues. with an English OS.

I have to see if I can find a way to add some logging to this to identify the issue.

Do you have a computer with English OS and Word you can test on?

Cheers!

UeliTri commented 3 months ago

Hi, Everything works fine on a new machine with EN-us and Word EN-us.

Kind regards

CloudAPIPowerShellManagement.log

Micke-K commented 1 month ago

Thank you for the update. I'll try to remember that next time the quest comes up :)

Cheers!