Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Cmdlet

Add-OfficeProjectAssignment

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

Assigns a project resource to a task by stable UID.

Syntax

Add-OfficeProjectAssignment
[-Document <ProjectDocument>]
[-PassThru]
[-Resource] <OfficeProjectResourceSelector>
[-Task] <OfficeProjectTaskSelector>
[-UnitsPercent <Decimal>]
[<CommonParameters>]
#
Parameter set: Document

Examples

Assigns a project resource to a task by stable UID.

$project | Add-OfficeProjectAssignment -Task 1 -Resource 1 -UnitsPercent 50

Parameters

-Document ProjectDocument optionalpipeline: True (ByValue)
Project to inspect or change.
-PassThru SwitchParameter optional
Return the created or changed object.
-Resource OfficeProjectResourceSelector requiredposition: 1
Stable resource UID.
-Task OfficeProjectTaskSelector requiredposition: 0
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.