Update-MSModuleAttachment
Update the file for an existing attachment
Syntax
Update-MSModuleAttachment -Module (String) -AttachmentId (Int32) -FilePath (String)
Examples
## Add file under 'c:\tmp\screenshot.png' as an attachment of type 'ScreenShot' to an Application with AppId 1000
Add-MSModuleAttachment -Module Applications -Id 1000 -FilePath "c:\tmp\screenshot.png" -AttachmentType 'ScreenShot'
## Add file under 'c:\discovery\app_discovery.docx' as an attachment of type id 7 (in this instance translates to 'Discovery Docs') to an Application with AppId 3079
## AttachmentTypeIds can be found under Administration\[Module]\Menu Items - Menu Group: Attachment. Id column is hidden by default so be sure to enable it.
Add-MSModuleAttachment -Module Applications -Id 3079 -FilePath "c:\discovery\app_discovery.docx" -AttachmentTypeId 7