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>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
#
Parameter set: Document

Examples

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 optionalposition: 0
Destination filename; its extension selects the format.
-ReportVariable String optional
Variable receiving the preservation and conversion assessment.
-WhatIf SwitchParameter optional
Shows what would happen if the command runs.
-Confirm SwitchParameter optional
Prompts for confirmation before running the command.

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.