Skip to content

SPProjectServerTimeSheetSettings

dscbot edited this page Mar 17, 2023 · 12 revisions

SPProjectServerTimeSheetSettings

Parameters

Parameter Attribute DataType Description Allowed Values
Url Key String The default zone URL of the Project site to set timesheet settings for
EnableOvertimeAndNonBillableTracking Write Boolean Should timesheets allow tracking of overtime and non-billable work types
DefaultTimesheetCreationMode Write String What is the default mode for timesheets to be created in CurrentTaskAssignments, CurrentProjects, NoPrepopulation
DefaultTrackingUnit Write String What is the default tracking unit for timesheets Days, Weeks
DefaultReportingUnit Write String What is the default reporting unit for timesheets Hours, Days
HoursInStandardDay Write Real32 How many hours are in a standard timesheeet day?
HoursInStandardWeek Write Real32 How many hours are in a standard timesheeet week?
MaxHoursPerTimesheet Write Real32 Maximum hours per timesheet
MinHoursPerTimesheet Write Real32 Minimum hours per timesheet
MaxHoursPerDay Write Real32 Maximum hours per day
AllowFutureTimeReporting Write Boolean Allow future time reporting?
AllowNewPersonalTasks Write Boolean Allow new personal tasks?
AllowTopLevelTimeReporting Write Boolean Allow top-level time reporting?
RequireTaskStatusManagerApproval Write Boolean Require task status manager approval?
RequireLineApprovalBeforeTimesheetApproval Write Boolean Require line approval before timesheet approval?
EnableTimesheetAuditing Write Boolean Enable timesheet auditing?
FixedApprovalRouting Write Boolean Enable fixed approval routing?
SingleEntryMode Write Boolean Enable single entry mode?
DefaultTrackingMode Write String What is the default tracking mode for tasks? PercentComplete, ActualDoneAndRemaining, HoursPerPeriod, FreeForm
ForceTrackingModeForAllProjects Write Boolean Force project managers to use the specified tracking mode for each project?

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
        }
    }
}
Clone this wiki locally