• You can do this way:

    This is one time effort and prepare the script for all servers in same way.

    update MonitoredSQLServers set MaintenanceModeEnabled = 1 where InstanceName = 'ServerName'

    Thanks,

    Ashok