Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Save-OfficeVisio

Aliases: VisioSave
Namespace PSWriteOffice
Aliases
VisioSave
Inputs
OfficeIMO.Visio.VisioDocument
Outputs
OfficeIMO.Visio.VisioDocument

Saves an OfficeIMO.Visio document.

Remarks

Saves an OfficeIMO.Visio document.

Examples

Authored help example

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> [-Open] [-PassThru] [-Path <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Document VisioDocument requiredposition: 0pipeline: True (ByValue)
Visio document to save.
Open SwitchParameter optionalposition: namedpipeline: Falsealiases: Show
Open the document after saving.
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the document object for further processing.
Path String optionalposition: 1pipeline: Falsealiases: FilePath
Optional save-as path.

Outputs

OfficeIMO.Visio.VisioDocument