# Get-OfficeProjectTask

Returns project tasks as pipeline objects. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteOffice Cmdlet Reference.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Project.ProjectDocument`

**Outputs**

`OfficeIMO.Project.ProjectTask`

**Source**

[GetOfficeProjectTaskCommand.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Project/GetOfficeProjectTaskCommand.cs#L16) 

Returns project tasks as pipeline objects.

## Syntax

```
Get-OfficeProjectTask
[-Document <ProjectDocument>]
[-Uid <Int32[]>]
[<CommonParameters>]
```

[#](#method-get-officeprojecttask-projectdocument-int32)

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

### Returns project tasks as pipeline objects.

```powershell
$project | Get-OfficeProjectTask | Select-Object Uid, Name, Start, Finish
```

## Parameters

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

Project to inspect or change.

**-Uid Int32[] optional**

Optional stable task UIDs.

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