API Reference
Cmdlet
Save-OfficeVisio
Saves an OfficeIMO.Visio document.
Remarks
Saves an OfficeIMO.Visio document.
Examples
Save a loaded diagram under a new path.
PS>
$diagram = Get-OfficeVisio -Path .\ServiceMap.vsdx
$diagram | Save-OfficeVisio -Path .\ServiceMap-copy.vsdx -PassThru
Saves an existing OfficeIMO.Visio document to another .vsdx file.
Common Parameters
This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.
For more information, see about_CommonParameters.
Syntax
Save-OfficeVisio -Document <VisioDocument> [-PassThru] [-Path <String>] [-Show] [<CommonParameters>]#Parameter set:
All Parameter SetsParameters
- Document VisioDocument
- Visio document to save.
- PassThru SwitchParameter
- Emit the document object instead of the saved file.
- Path String
- Optional save-as path.
- Show SwitchParameter
- Open the document after saving.
Outputs
OfficeIMO.Visio.VisioDocument System.IO.FileInfo