M365Documentation icon indicating copy to clipboard operation
M365Documentation copied to clipboard

Powershell 7 x64 errors when creating the document

Open skippernl opened this issue 3 years ago • 1 comments

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 avatar Feb 28 '22 13:02 skippernl

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.

skippernl avatar Mar 01 '22 15:03 skippernl

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?

ThomasKur avatar Jul 20 '23 22:07 ThomasKur

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: @.***>

skippernl avatar Jul 21 '23 06:07 skippernl

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

tldtech avatar Aug 22 '23 18:08 tldtech

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."

tldtech avatar Aug 22 '23 18:08 tldtech

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

MietekW avatar Aug 28 '23 11:08 MietekW

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

ThomasKur avatar Feb 17 '24 07:02 ThomasKur

Please test the new version 3.2.2

ThomasKur avatar Feb 18 '24 14:02 ThomasKur