Computer.IsInMaintenanceMode Property
Checks whether the computer is in maintenance mode.
bool IsInMaintenanceMode{get;}
Remarks
If the computer is in maintenance mode, see the MaintenanceReason property for details.
Requirements
Platforms: Requires Windows 2000 Server or later
Version: Requires MOM 2005 or later
Namespace: Microsoft.EnterpriseManagement.Mom
Assembly: Microsoft.Mom.Sdk (in Microsoft.Mom.Sdk.dll)