SPProjectServerTimeSheetSettings - dsccommunity/SharePointDsc GitHub Wiki
Parameters
Parameter | Attribute | DataType | Description | Allowed Values |
---|---|---|---|---|
Url | Key | String | The default zone URL of the Project site to set timesheet settings for | |
AllowFutureTimeReporting | Write | Boolean | Allow future time reporting? | |
AllowNewPersonalTasks | Write | Boolean | Allow new personal tasks? | |
AllowTopLevelTimeReporting | Write | Boolean | Allow top-level time reporting? | |
DefaultReportingUnit | Write | String | What is the default reporting unit for timesheets | Hours , Days |
DefaultTimesheetCreationMode | Write | String | What is the default mode for timesheets to be created in | CurrentTaskAssignments , CurrentProjects , NoPrepopulation |
DefaultTrackingMode | Write | String | What is the default tracking mode for tasks? | PercentComplete , ActualDoneAndRemaining , HoursPerPeriod , FreeForm |
DefaultTrackingUnit | Write | String | What is the default tracking unit for timesheets | Days , Weeks |
EnableOvertimeAndNonBillableTracking | Write | Boolean | Should timesheets allow tracking of overtime and non-billable work types | |
EnableTimesheetAuditing | Write | Boolean | Enable timesheet auditing? | |
FixedApprovalRouting | Write | Boolean | Enable fixed approval routing? | |
ForceTrackingModeForAllProjects | Write | Boolean | Force project managers to use the specified tracking mode for each project? | |
HoursInStandardDay | Write | Real32 | How many hours are in a standard timesheeet day? | |
HoursInStandardWeek | Write | Real32 | How many hours are in a standard timesheeet week? | |
MaxHoursPerDay | Write | Real32 | Maximum hours per day | |
MaxHoursPerTimesheet | Write | Real32 | Maximum hours per timesheet | |
MinHoursPerTimesheet | Write | Real32 | Minimum hours per timesheet | |
RequireLineApprovalBeforeTimesheetApproval | Write | Boolean | Require line approval before timesheet approval? | |
RequireTaskStatusManagerApproval | Write | Boolean | Require task status manager approval? | |
SingleEntryMode | Write | Boolean | Enable single entry mode? |
Description
Type: Distributed Requires CredSSP: No
Allows you to configure the default timesheet settings for a specific PWA instance.
Examples
Example 1
This example demonstrates how to apply timesheet settings to a specific PWA instance
Configuration Example
{
param
(
[Parameter(Mandatory = $true)]
[PSCredential]
$SetupAccount
)
Import-DscResource -ModuleName SharePointDsc
node localhost
{
SPProjectServerTimeSheetSettings ConfigureTimeSheets
{
Url = "http://projects.contoso.com/pwa"
HoursInStandardDay = 8
HoursInStandardWeek = 40
AllowFutureTimeReporting = $false
PsDscRunAsCredential = $SetupAccount
}
}
}