# Save-OfficeAccess

Writes a qualified native database with strict loss protection.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Access.AccessDocument`

**Outputs**

`OfficeIMO.Access.AccessDocument`

**Source**

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

Writes a qualified native database with strict loss protection.

## Syntax

```
Save-OfficeAccess
[-AllowLoss]
-Document <AccessDocument>
[-Force]
[-PassThru]
[[-Path] <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
```

[#](#method-save-officeaccess-switchparameter-accessdocument-switchparameter-switchparameter-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

### Writes a qualified native database with strict loss protection.

```powershell
$database | Save-OfficeAccess -Path ./contacts.accdb
```

## Parameters

**-AllowLoss SwitchParameter optional**

Explicitly accept reported native-save loss.

**-Document AccessDocument requiredpipeline: True (ByValue)**

Live database document.

**-Force SwitchParameter optional**

Replace an existing destination through the canonical atomic writer.

**-PassThru SwitchParameter optional**

Return the created or changed object.

**-Path String optionalposition: 0**

Destination filename.

**-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:A0A916946D48241B29C94C5A43EFC2CA1DD4E56AACD4213BD23CFCB47E6D890F -->
