Closed skippernl closed 6 months 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.
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?
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: @.***>
I see the same thing with PowerShell 7 x64. The system creates the word file; however its blank. doc-temp.docx
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."
@ThomasKur any plans to integrate the new PSWriteOffice? We are also running in this issue as we are switching over to PWSH Core(7).
This is now on my list and will be released shortly.
Please test the new version 3.2.2
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.