ThomasKur / M365Documentation

Automatic Microsoft 365 Documentation to simplify the life of admins and consultants.
Other
300 stars 45 forks source link

Powershell 7 x64 errors when creating the document #21

Closed skippernl closed 6 months ago

skippernl commented 2 years ago

PS C:\Users\xxxxxxxxxx> $doc | Write-M365DocWord -FullDocumentationPath "c:\temp\$($doc.CreationDate.ToString("yyyyMMddHHmm"))-WPNinjas-Doc.docx" PS C:\Users\xxxxxxxxxx> PS C:\Users\xxxxxxxxxx> Supported Components Supported: The term 'Supported' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. PS C:\Users\xxxxxxxxxx> Microsoft Endpoint Manager / Intune Microsoft: The term 'Microsoft' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. PS C:\Users\xxxxxxxxxx> PS C:\Users\xxxxxxxxxx> The following entities are documented: The: The term 'The' is not recognized as a name of a cmdlet, function, script file, or executable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

skippernl commented 2 years ago

Ran the same command again and now there are no errors. The json file looks the same as generated in powershell 5 the word file has only the template and no information.

ThomasKur commented 1 year ago

Hello Skippernl As I can understand it was first not working but then it worked but the Document Creation has just produced an empty word file? Correct?

skippernl commented 1 year ago

Not able to check it now (On holiday) will check it when I get back with the latest version.

Op vr 21 jul. 2023 00:30 schreef Thomas Kurth @.***>:

Hello Skippernl As I can understand it was first not working but then it worked but the Document Creation has just produced an empty word file? Correct?

— Reply to this email directly, view it on GitHub https://github.com/ThomasKur/M365Documentation/issues/21#issuecomment-1644703683, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIWZNYOZKOU74KCVI55C5TXRGWPPANCNFSM5PRBYWJQ . You are receiving this because you authored the thread.Message ID: @.***>

tld6764 commented 1 year ago

I see the same thing with PowerShell 7 x64. The system creates the word file; however its blank. doc-temp.docx

tld6764 commented 1 year ago

I think this is why. I looked up PSWriteWord... PSWriteWord - this module works only in Windows PowerShell 5.1, and DLL license has changed making updates to it very hard.__ They have moved to "PSWriteOffice."

MietekW commented 12 months ago

@ThomasKur any plans to integrate the new PSWriteOffice? We are also running in this issue as we are switching over to PWSH Core(7).

ThomasKur commented 6 months ago

This is now on my list and will be released shortly.

ThomasKur commented 6 months ago

Please test the new version 3.2.2