# Close-OfficeProject

Closes a project without implicitly saving it. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice Cmdlet Reference.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Project.ProjectDocument`

**Source**

[CloseOfficeProjectCommand.cs:14](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Project/CloseOfficeProjectCommand.cs#L14) 

Closes a project without implicitly saving it.

## Syntax

```
Close-OfficeProject
-Document <ProjectDocument>
[<CommonParameters>]
```

[#](#method-close-officeproject-projectdocument)

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

### Closes a project without implicitly saving it.

```powershell
$project | Close-OfficeProject
```

## Parameters

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

Project to inspect or change.

## 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:F240162F4D5F72878078BF304FB7BF2006BA5F4C50B7FDBCEFEF7F9E2E59517E -->
