Closed jeremyjenkins5 closed 6 years ago
$FilePath defined? You need to provide $FilePath = C:\Users\UserName\Desktop\somedoc.docx ?
Otherwise I need error you get?
Yes, I defined $FilePath to match the example. Screenshot of the error I get.
You have to type all of that
Import-Module PSWInDocumentation
Import-Module PSWriteWord
Import-Module ActiveDirectory
$FilePath = "$Env:USERPROFILE\Desktop\PSWriteWord-Example-Report.docx"
Start-ActiveDirectoryDocumentation -CompanyName 'Your Company' -FilePath $FilePath -OpenDocument -Verbose
Or run this as .ps1
Alright, that worked! I'm embarrassed it was so simple. Thanks for the help!
No problem. Happens. Actually it should work without it as long as I would define this module properly. But it's an alpha so it requires Import-Module explicitly.
I installed based on the information here: https://evotec.xyz/hub/scripts/pswindocumentation-powershell-module/
However when I run:
Start-ActiveDirectoryDocumentation -CompanyName 'Evotec' -FilePath $FilePath -OpenDocument
Nothing seems to happen.Here is what I've done:
Downloaded and Imported PSWriteWord
Import-Module PSWriteWord
Downloaded and Imported PSWinDocumentation
Import-Module PSWinDocumentation
Downloaded and Installed Windows RSAT tools
Installed the two modules from 1. and 2.
Did I miss a step somewhere? Thanks!