description | title | titleSuffix | ms.date | ms.subservice | ms.service | ms.topic | ms.assetid | author | ms.author | manager | ms.localizationpriority | ms.collection | ms.reviewer |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Learn how to set a distribution point in maintenance mode using SetDPMaintenanceMode class method in Configuration Manager. |
SetDPMaintenanceMode method |
Configuration Manager |
05/24/2019 |
sdk |
configuration-manager |
reference |
fd03d3a8-10db-4e0f-94d7-86f914ada72f |
Banreet |
banreetkaur |
apoorvseth |
low |
tier3 |
mstewart,aaroncz |
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.
uint32 SetDPMaintenanceMode(
[in] string NALPath,
[in] uint32 Mode
);
Data type: String
Qualifiers: [in]
Network abstraction layer (NAL) path to the distribution point server.
Data type: uint32
Qualifiers: [in]
1
to enable maintenance mode, 0
to disable
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.
For more information, see Configuration Manager server runtime requirements.
For more information, see Configuration Manager server development requirements.