You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The syntax for Close-OfficeWord suggests that the -Document parameter is optional. That would lead one to believe that if they had done an Get-OfficeWord without assigning the output to a variable, that they could then simply execute Close-OfficeWord to close it again, but that doesn't appear to be the case.
Additionally, should one's script error before having a chance to close a previously opened document, that document is held in limbo until the PowerShell session is closed.
The text was updated successfully, but these errors were encountered:
The syntax for
Close-OfficeWord
suggests that the-Document
parameter is optional. That would lead one to believe that if they had done anGet-OfficeWord
without assigning the output to a variable, that they could then simply executeClose-OfficeWord
to close it again, but that doesn't appear to be the case.Additionally, should one's script error before having a chance to close a previously opened document, that document is held in limbo until the PowerShell session is closed.
The text was updated successfully, but these errors were encountered: