May 07 2024 09:14 PM - edited May 09 2024 01:54 AM
Hello
I have a new VM - Windows 11,
Installed SSMS V20.1 today
Installed SQLServer Powershell Module. SQLServer Module version is 22.2.0 . Only 1 version installed.
(Install-Module -Name SqlServer -Repository PSGallery -Force)
When I go into powershell and do the following
Set-Location "SQLSERVER:\SQLRegistration\database Engine Server Group"
new-item "TestFolder"
This TestFolder does not show up in SSM v20 (Registered Servers Group)
Similarly If i got into SSMS v20, and create a folder named "TestSSMS",
This does not show up in the powershell sqlserver directory
I need to run a powershell command that populates the registered servers list. there are at least 30 servers that i need to register - hence powershell is a better option to do the registration.
Any help would be grateful to fix this?
May 07 2024 09:49 PM
@UnknownSQLDBA It's easier to use "DbaTools" PowerShell CmdLet, see
May 07 2024 10:26 PM - edited May 07 2024 10:26 PM
I tried that as well.
Add-DbaRegServer -ServerName SQLName1
Get-DbaRegisteredServer -- shows me that it is added
But when i go into SSMS, its not in the registered list. (restarted and refreshed ssms as well)
May 09 2024 12:49 AM
SolutionMay 09 2024 01:52 AM
May 09 2024 12:49 AM
Solution