The Enable-CVSchedulePolicy
cmdlet enables schedule policies.
Before you can use this cmdlet, you must log on to your CommCell environment using the Connect-CVServer
cmdlet. For more information, see Connecting to a CommCell Environment with PowerShell.
Syntax
Enable-CVSchedulePolicy -Name <String> [<CommonParameters>]
Enable-CVSchedulePolicy -Id <Int32> [<CommonParameters>]
Enable-CVSchedulePolicy -PolicyObject <Object> [<CommonParameters>]
Enable-CVSchedulePolicy -ClientName <String> -SubclientName <String> [<CommonParameters>]
Required Parameters
Parameter | Description | Data type | Values | Accepts pipeline input? | Accepts wildcard characters? | Type of parameter |
---|---|---|---|---|---|---|
| The name of the schedule policy. | String | No | No | Named | |
| The ID of the schedule policy. | Int32 | The default value is 0. | No | No | Named |
| An object that contains information to identify the schedule policy. | Object | Yes, by:
| No | Named | |
| The name of the client to enable schedule policies for. | String | No | No | Named | |
| The name of the subclient to enable schedule policies for. | String | No | No | Named |
Optional Parameters
Microsoft PowerShell Parameters
You can use the following Microsoft PowerShell parameters:
Debug
ErrorAction
ErrorVariable
OutBuffer
OutVariable
PipelineVariable
Verbose
WarningAction
WarningVariable
Force
Confirm
WhatIf
Note: Only a few cmdlets support Force, Confirm, and WhatIf parameters.
For more information, see "About Common Parameters" in the Microsoft PowerShell documentation.
Input
This cmdlet does not support input.
Output
A message that indicates whether the schedule policy or schedule policies were enabled successfully.
Examples
Enable a Schedule Policy Identified by an ID
This example enables schedule policy 229.
Enable-CVSchedulePolicy -Id 229
Enable Schedule Policies for a Subclient
This example enables all schedule policies for the AuditDB subclient.
Enable-CVSchedulePolicy -ClientName carbonWinCS1 -SubclientName AuditDB