# Set-OfficeProjectTask

Updates selected task fields without implicitly recalculating its schedule.

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Project.ProjectTask`

**Outputs**

`OfficeIMO.Project.ProjectTask`

**Source**

[SetOfficeProjectTaskCommand.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/PowerShell/PSWriteOffice/Sources/PSWriteOffice/Cmdlets/Project/SetOfficeProjectTaskCommand.cs#L13) 

Updates selected task fields without implicitly recalculating its schedule.

## Syntax

```
Set-OfficeProjectTask
[-DurationDays <Decimal>]
[-Finish <DateTime>]
[-Manual]
[-Name <String>]
[-PassThru]
[-PercentComplete <Int32>]
[-Start <DateTime>]
-Task <ProjectTask>
[<CommonParameters>]
```

[#](#method-set-officeprojecttask-decimal-datetime-switchparameter-string-switchparameter-int32-datetime-projecttask)

Parameter set: `Task`

## Examples

### Change task progress and its working duration.

```powershell
$project | Get-OfficeProjectTask -Uid 7 | Set-OfficeProjectTask -DurationDays 4 -PercentComplete 25
```

## Parameters

**-DurationDays Decimal optional**

Working duration in days.

**-Finish DateTime optional**

Stored local finish date.

**-Manual SwitchParameter optional**

Explicit manual scheduling choice.

**-Name String optional**

New task name.

**-PassThru SwitchParameter optional**

Return the changed task.

**-PercentComplete Int32 optional**

Duration completion from zero to one hundred.

**-Start DateTime optional**

Stored local start date.

**-Task ProjectTask requiredpipeline: True (ByValue)**

Editable task returned by Get-OfficeProjectTask.

## 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:517636B1579E7D2DA7804E2EE425EF7293372A9E56078DB05B88109A8635E24C -->
