Powershell script to import or export SQL Server 2000 Enterprise Manager group and server registrations.
Note: SQL Server 2000 Enterprise Manager should be installed and then launched to initialize the registry keys. Close Enterprise Manager prior to running script.
To use you'll need to source the Powershell Script.
Save the file as sqlem.ps1
Launch Powershell cd to the file location
. ./sqlem.ps1
This will source the Powershell script which simply defines the functions but does not execute the script. Example usage to export and import server registrations to c:\serves.txt file:
Export-RegisteredServers c:\servers.txt
or
Import-RegisteredServers c:\servers.txt