Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Set-OfficeProjectTask

Module
PSWriteOffice
Inputs
OfficeIMO.Project.ProjectTask
Outputs
OfficeIMO.Project.ProjectTask

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>]
#
Parameter set: Task

Examples

Change task progress and its working duration.

$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.