Open garricko42 opened 2 years ago
I am receiving this error with a GA account with MFA enabled. There is no issue connecting and have tried running $doc = Get-M365Doc -Components Intune with the same error.
As a follow up I ran a clean install of Windows 10 in a VM with Powershell 7.2.1 (latest installer) and received the same error.
I just installed from PowerShell Gallery today. Running PS 7.4.1 on Windows 11. I am getting the same. I think the line 25 and 36 errors have to do with some missing assignment. Likely no big deal. All the data gets collected. When running Write-M365DocWord I get a lot of errors along the lines of "The property 'Width' cannot be found on this object" or "Cannot bind argument to parameter 'Document' because it is null." And a final warning that the document could not be saved. I was able to run Write-M365DocMd with no errors and what appears to be full output. I have PSWord, PSWriteWord, and PSWriteOffice installed.
Hello Thomas,
Getting some errors after connecting and when running: $doc = Get-M365Doc -Components Intune -ExcludeSections "MobileAppDetailed"
The script seems to run without issue until the end when I start to receive Request_ResourceNotFound errors. This is what I'm finding in Event Viewer:
The errors are being reported from lines 25 and 36.
Running the last command to generate the docx file produces a document with just the default images and headings, no data.
I am running all commands in an elevated command prompt and connecting with a GA account.
I have checked my resources/modules and imported as many as I could find.
Have you encountered this issue before? Suggestions on where to focus my troubleshooting efforts?
Thank you