You can check here. DBATOOLS module for PowerShell makes it easy to use RegisteredServers.
How to register an instance as central management server(CMS) server instance using powershell?
Ummer, Fazil
0
Reputation points
Hi,
Can we automate register Central Management Server using powershell? I'm unable to find any documentation regarding the this?. Rest of the steps are automated through poweshell.
As part of the testing the script I have deleted the registered Central Management Server from SSMS but still able to add the Server groups and register servers to it. Is it expected ?