Get-SQLServers.ps1

# Get-SQLServers.ps1 # Sample showing use of SMO and PowerShell # Thomas Lee - tfl@psp.co.uk # Load the SMO objects $load = [reflection.assembly] :: LoadWithPartialName( " Microsoft.SqlServer.Smo " ) # Derive the SMO Application Object $smo = [Microsoft.SqlServer.Management.Smo.SmoApplication] # Get available SQL Servers and display them $SQLServers = $smo :: EnumAvailableSqlServers( $false Read More...

Read the complete post at http://pshscripts.blogspot.com/2008/11/get-sqlserversps1.html


Posted Nov 27 2008, 05:54 AM by PowerShell Scripts
Concentrated Tech NSoftware Dell Compellent Sponsored by Idera and Concentrated Tech and NSoftware and Dell Compellent
Copyright 2011 PowerShell.com. All rights reserved.