Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficeProjectAssignment

Module PSWriteOffice
Inputs
OfficeIMO.Project.ProjectDocument
Outputs
OfficeIMO.Project.ProjectAssignment

Assigns a project resource to a task by stable UID.

Syntax

Add-OfficeProjectAssignment -Document <ProjectDocument> [-PassThru] -ResourceUid <Int32> -TaskUid <Int32> [-UnitsPercent <Decimal>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Assigns a project resource to a task by stable UID.

$project | Add-OfficeProjectAssignment -TaskUid 1 -ResourceUid 1 -UnitsPercent 50

Parameters

-Document ProjectDocument requiredpipeline: True (ByValue)
Project to inspect or change.
-PassThru SwitchParameter optional
Return the created or changed object.
-ResourceUid Int32 required
Stable resource UID.
-TaskUid Int32 required
Stable task UID.
-UnitsPercent Decimal optional
Assignment units as a percentage.

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.