# Save-OfficeProject

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

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Project.ProjectDocument`

**Outputs**

`OfficeIMO.Project.ProjectDocument`

**Source**

[SaveOfficeProjectCommand.cs:15](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Project/SaveOfficeProjectCommand.cs#L15) 

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>]
```

[#](#method-save-officeproject-switchparameter-projectdocument-switchparameter-projectfileformat-switchparameter-string-string-switchparameter-switchparameter)

Parameter set: `Document`

## Guides & Samples

Authored walkthroughs and practical samples linked to this command.

- [Project, Access, and EPUB Files](/docs/pswriteoffice/project-access-epub/) Guide
  
  Create and read Microsoft Project schedules, Access databases and EPUB books from PowerShell, without Project or Access installed.

## Examples

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

```powershell
$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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

<!-- PowerForge markdown artifact sha256:B0909E3680AE74171C4EDBF10F51BE3CE5379F3C7E63FC38A61C2C555FAB1893 -->
