Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 

Import/Export SQL Server 2000 Enterprise Manager Registered Servers

By Chad Miller, 2008/05/08

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

Total article views: 2415 | Views in the last 30 days: 6
 
Related Articles
BLOG

Export SQL Server Error Messages from Event Viewer As HTML

i use the following powershell script to retrive all sql server error logs from event viewer and exp...

SCRIPT

Powershell - Export Stored Proc results to CSV file

This Powershell script calls a stored procedure and exports the results to a CSV file

FORUM

Exports in SQL Server

Exports in SQL Server

ARTICLE

Powershell Database Backup Script

Learn how to write a script for regular database backups using Powershell and SMO.

SCRIPT

PowerShell - Restart Services

A PowerShell script which restarts any service running on a server.

 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones