Get-SCOMMaintenanceMode cmdlet not availalbe in OperationsManager module

Brian W 121 Reputation points
2024-04-24T13:40:24.7166667+00:00

Did this cmdlet get removed in 2022? I don't see it or set-scommaintenancemode listed when I view the commands in the module.

User's image

Microsoft System Center
Microsoft System Center
A suite of Microsoft systems management products that offer solutions for managing datacenter resources, private clouds, and client devices.
849 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. XinGuo-MSFT 14,851 Reputation points
    2024-04-25T02:47:51.1066667+00:00

    Hi,

    Please try the following query:

    PS C:\> Get-Command -Module OperationsManager | ? {$_.name -like  'Set-SCOMMaintenanceMode'}
    
    CommandType     Name                                               Version    Source
    -----------     ----                                               -------    ------
    Cmdlet          Set-SCOMMaintenanceMode                            1.0        OperationsManager
    
    

  2. XinGuo-MSFT 14,851 Reputation points
    2024-05-10T07:26:39.8733333+00:00

    Perform the following steps to initiate maintenance mode from the target Windows computer:

    Sign in to the computer.

    Run Windows PowerShell as an administrator from the Start screen.

    Change directory to the following path C:\Program Files\Microsoft Monitoring Agent\Agent by entering cd C:\Program Files\Microsoft Monitoring Agent\Agent.

    Import the module MaintenanceMode.dll by entering Import-module MaintenanceMode.dll.

    Enter Start-SCOMAgentMaintenanceMode and use the parameters to configure the maintenance mode request.

    User's image

    0 comments No comments