Skip to main content
SnapCenter 4.9 cmdlets

Set-SmDatasetMaintenance

Contributors

Sets a dataset to maintenance or production mode.

Syntax

Set-SmDatasetMaintenance [-DatasetName]  <String>  [-MaintenanceStatus]  <SmMaintenanceStatus>

Detailed Description

Sets a dataset to maintenance or production mode. No scheduled jobs are executed for a dataset in maintenance mode.

Parameters

Name Description Required? Pipeline Input Default Value

DatasetName

The dataset name.

true

true (ByPropertyName)

MaintenanceStatus

The maintenance status of the dataset. The maintenance status is Production or UnderMaintenance.

true

true (ByPropertyName)

Examples

Example 1: Setting a dataset to production mode

 Set-SmDatasetMaintenance -DatasetName Payroll_Dataset -MaintenanceStatus Production

This example syntax set the specified dataset to production mode.