Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Save-OfficeProject

Module PSWriteOffice
Inputs
OfficeIMO.Project.ProjectDocument
Outputs
OfficeIMO.Project.ProjectDocument

Saves a project through the qualified native codec with loss protection.

Syntax

Save-OfficeProject [-AllowLoss] -Document <ProjectDocument> [-Force] [-Format <ProjectFileFormat>] [-PassThru] [-Path] <String> [-ReportVariable <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Saves a project through the qualified native codec with loss protection.

$project | Save-OfficeProject -Path ./delivery.mpp

Parameters

-AllowLoss SwitchParameter optional
Permit reported conversion loss. Unsupported codecs still fail.
-Document ProjectDocument requiredpipeline: True (ByValue)
Project to inspect or change.
-Force SwitchParameter optional
Replace an existing destination.
-Format ProjectFileFormat optional
Explicit generation or exchange format.
Possible values: Automatic, Xml, Mpp14, Mpt14, Mpp12, Mpt12, Mpp9, Mpt9, Mpp8, Mpt8, Mpx4
-PassThru SwitchParameter optional
Return the created or changed object.
-Path String requiredposition: 0
Destination filename; its extension selects the format.
-ReportVariable String optional
Variable receiving the preservation and conversion assessment.

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.