# Set-RASDayPlan

## NAME

Set-RASDayPlan

## SYNOPSIS

Modifies the day plan settings of LogonHours.

## SYNTAX

**Set-RASDayPlan** \[-[Id](#Id)] _\<uint>_ -[HourPlan](#HourPlan) {h00 | h01 | h02 | h03 | h04 | h05 | h06 | h07 | h08 | h09 | h10 | h11 | h12 | h13 | h14 | h15 | h16 | h17 | h18 | h19 | h20 | h21 | h22 | h23} -[ObjType](#ObjType) {[LogonHours](../classes-and-enumerations/logonhours)} -[WeekDays](#WeekDays) {None | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday} \[-[Permission](#Permission) {Deny | Permit}] \[_<_[_CommonParameters_](#CommonParameters)_>_]

**Set-RASDayPlan** \[-[InputObject](#InputObject)] _<_[_RASListObj_](../classes-and-enumerations/raslistobj)_>_ -[HourPlan](#HourPlan) {h00 | h01 | h02 | h03 | h04 | h05 | h06 | h07 | h08 | h09 | h10 | h11 | h12 | h13 | h14 | h15 | h16 | h17 | h18 | h19 | h20 | h21 | h22 | h23} -[WeekDays](#WeekDays) {None | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday} \[-[Permission](#Permission) {Deny | Permit}] \[_<_[_CommonParameters_](#CommonParameters)_>_]

**Set-RASDayPlan** \[-[Name](#Name)] _\<string>_ \[\[-[SiteId](#SiteId)] _\<uint>_] -[HourPlan](#HourPlan) {h00 | h01 | h02 | h03 | h04 | h05 | h06 | h07 | h08 | h09 | h10 | h11 | h12 | h13 | h14 | h15 | h16 | h17 | h18 | h19 | h20 | h21 | h22 | h23} -[ObjType](#ObjType) {[LogonHours](../classes-and-enumerations/logonhours)} -[WeekDays](#WeekDays) {None | Sunday | Monday | Tuesday | Wednesday | Thursday | Friday | Saturday} \[-[Permission](#Permission) {Deny | Permit}] \[_<_[_CommonParameters_](#CommonParameters)_>_]

## DESCRIPTION

Modifies the day plan settings of LogonHours.

## PARAMETERS

-**Name \<string>**\
The name of the object to modify the day plan.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**SiteId \<uint>**\
Site ID for which to modify the specified day plan of the object type specified.

If the parameter is omitted, the Site ID of the Licensing Server will be used.

```
        Required?                    false

        Position?                    1

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Id \<uint>**\
The ID of the object to modify the day plan.

```
        Required?                    true

        Position?                    0

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**InputObject <**[**RASListObj**](../classes-and-enumerations/raslistobj)**>**\
The permitted logon hours property to modify.

To obtain an object of type LogonHours, use the Get-LogonHours cmdlet.

```
        Required?                    true

        Position?                    0

        Default value                

        Accept pipeline input?       true (ByValue)

        Accept wildcard characters?  false
```

-**ObjType <**[**DayPlanObjType**](../classes-and-enumerations/dayplanobjtype)**>**\
The Object Type for which to update the Day Plan settings.

Possible values: LogonHours

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**Permission <**[**Permission**](../classes-and-enumerations/permission)**>**\
Permission (Permit/Deny)

Possible values: Deny, Permit

```
        Required?                    false

        Position?                    named

        Default value                Permit

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**WeekDays <**[**WeekDays**](../classes-and-enumerations/weekdays)**>**\
Week Days

Possible values: None, Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday

```
        Required?                    true

        Position?                    named

        Default value                None

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

-**HourPlan <**[**HourPlan**](../classes-and-enumerations/hourplan)**>**\
Hour Plan

Possible values: h00, h01, h02, h03, h04, h05, h06, h07, h08, h09, h10, h11, h12, h13, h14, h15, h16, h17, h18, h19, h20, h21, h22, h23

```
        Required?                    true

        Position?                    named

        Default value                0

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

\<CommonParameters>

```
        This cmdlet supports the common parameters: Verbose, Debug,

        ErrorAction, ErrorVariable, WarningAction, WarningVariable,

        OutBuffer, PipelineVariable, and OutVariable. For more information, see 

        about_CommonParameters documentation. 
```

## INPUTS

[RASListObj](../classes-and-enumerations/raslistobj)

## OUTPUTS

-none-

## EXAMPLES

**---------- EXAMPLE 1 ----------**

Set-RASDayPlan -Name LH1 -ObjType LogonHours -WeekDays Saturday -HourPlan h08,h09,h10,h11,h12

Modifies the Day Plan Settings of the LogonHours with name LH1 to permit Saturday between 8.00 am and 12.59 pm.\
&#xNAN;**---------- EXAMPLE 2 ----------**

Set-RASDayPlan -Id 3 -ObjType LogonHours -WeekDays Sunday,Monday -Permission Deny -HourPlan h12,h13,h14,h15

Modifies the Day Plan Settings of the LogonHours with Id 3 to deny Sunday and Monday between 12.00 pm and 3.59 pm.

## RELATED LINKS

* [Get-RASDayPlan](get-rasdayplan)
* [Set-RASLogonHours](set-raslogonhours)
