SetDPMaintenanceMode method in class SMS_DistributionPoint
The SetDPMaintenanceMode
WMI class method in Configuration Manager sets a distribution point in maintenance mode. For more information, see Maintenance mode.
The following syntax is simplified from Managed Object Format (MOF) code and defines the method.
Syntax
uint32 SetDPMaintenanceMode(
[in] string NALPath,
[in] uint32 Mode
);
Parameters
NALPath
Data type: String
Qualifiers: [in]
Network abstraction layer (NAL) path to the distribution point server.
Mode
Data type: uint32
Qualifiers: [in]
1
to enable maintenance mode, 0
to disable
Return values
An uint32
data type that's 0
indicates success. A non-zero hresult indicates failure.
For more information about handling returned errors, see About Configuration Manager errors.
Requirements
Runtime requirements
For more information, see Configuration Manager server runtime requirements.
Development requirements
For more information, see Configuration Manager server development requirements.