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.
838 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 14,536 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