﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 Administration  / find the status of SQL Services on multiple servers / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 23 May 2013 14:18:14 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: find the status of SQL Services on multiple servers</title><link>http://www.sqlservercentral.com/Forums/Topic1422885-1550-1.aspx</link><description>This should do what you need.  If it doesn't work, I wonder if there may be some firewall policy or server security blocking you.[code="plain"]gwmi win32_service -comp (gc servers.txt) |select __server,name,startmode,state,status[/code]</description><pubDate>Wed, 27 Feb 2013 17:33:27 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: find the status of SQL Services on multiple servers</title><link>http://www.sqlservercentral.com/Forums/Topic1422885-1550-1.aspx</link><description>Here'a a couple of what sounds like a decent tool I found in 10 minutes using my assistant DBA, Google. :-PI like this first one the most because I can call Powershell from xp_CmdShell (captures the result set directly) or just run Powershell separately and pipe the output to an importable file.[url]http://www.mssqltips.com/sqlservertip/2013/find-sql-server-instances-across-your-network-using-windows-powershell/[/url]Here's another that goes above and beyond.[url]http://www.straightpathsql.com/archives/2009/02/what-sql-instances-are-installed-on-my-network/[/url][url]http://www.microsoft.com/en-us/download/details.aspx?id=7826[/url]MAP (Microsoft Assessment and Planning Toolkit) (from the links above) supposedly makes a spreadsheet and a word document with all the goodies you might care to lookup.</description><pubDate>Wed, 27 Feb 2013 17:08:38 GMT</pubDate><dc:creator>Jeff Moden</dc:creator></item><item><title>RE: find the status of SQL Services on multiple servers</title><link>http://www.sqlservercentral.com/Forums/Topic1422885-1550-1.aspx</link><description>Thanks Patrick for your time.Adding 800+ servers to "Central Management Servers" is a big problem and in manual.Any automation for this to register.</description><pubDate>Wed, 27 Feb 2013 00:16:31 GMT</pubDate><dc:creator>- Win</dc:creator></item><item><title>RE: find the status of SQL Services on multiple servers</title><link>http://www.sqlservercentral.com/Forums/Topic1422885-1550-1.aspx</link><description>Hi,With registered Servers it could be ok. Add two Server to the registered Server, Export it and try to generate the XML with select on the Server list. And Then try Import it.</description><pubDate>Tue, 26 Feb 2013 14:26:28 GMT</pubDate><dc:creator>Patrick_Fiedler</dc:creator></item><item><title>RE: find the status of SQL Services on multiple servers</title><link>http://www.sqlservercentral.com/Forums/Topic1422885-1550-1.aspx</link><description>yes we are using Powershell already for all the machines.But I am to trying to get this done by SQL Queries.Is there any way to add all the servers to "Central Management Servers".One by one registering will take long time for me to register lot number of SQL servers.</description><pubDate>Tue, 26 Feb 2013 02:56:53 GMT</pubDate><dc:creator>- Win</dc:creator></item><item><title>RE: find the status of SQL Services on multiple servers</title><link>http://www.sqlservercentral.com/Forums/Topic1422885-1550-1.aspx</link><description>Hi,have you kept the firewall settings in mind. Have you allowed the remote powershell ports?[url]http://blogs.technet.com/b/christwe/archive/2012/06/20/what-port-does-powershell-remoting-use.aspx[/url]Another possibility to check the running server:You can use the Registered Servers feature of the SSMS. Generate a serverlist to import and start a new query. All server without connection would be listed in the messages &amp;#119;indow.</description><pubDate>Sun, 24 Feb 2013 07:43:28 GMT</pubDate><dc:creator>Patrick_Fiedler</dc:creator></item><item><title>RE: find the status of SQL Services on multiple servers</title><link>http://www.sqlservercentral.com/Forums/Topic1422885-1550-1.aspx</link><description>Appreciate if anyone can help.---- ONe more add on.I have SQL 2000, 2005, 2008, R2 &amp; 2012 in place, of 800+ servers.</description><pubDate>Sat, 23 Feb 2013 10:17:43 GMT</pubDate><dc:creator>- Win</dc:creator></item><item><title>RE: find the status of SQL Services on multiple servers</title><link>http://www.sqlservercentral.com/Forums/Topic1422885-1550-1.aspx</link><description>any help is appreciated..the below script gives report to only one machine twice when it is ran through VM.List of servers are not getting used for checking.why script not trying next server names in the list other than local instance.it results for local machine only. I would like to pull details of 1. SQL Server &amp; SQL Server Agent services, started and stopped.2. If stopped, start them automatically.3. again check for status.I am trying for 3 steps handy and verified after maintenance..----------------------------------------------------------------------------------------------------------------------------#create final results to export$results = @()# Defining output format for each column.$fmtName   =@{label="Service Name" ;alignment="left"  ;width=30 ;Expression={$_.Name};};$fmtMode   =@{label="Start Mode"   ;alignment="left"  ;width=10 ;Expression={$_.StartMode};};$fmtState  =@{label="State"        ;alignment="left"  ;width=10 ;Expression={$_.State};};$fmtStatus =@{label="Status"       ;alignment="left"  ;width=10 ;Expression={$_.Status};};$fmtMsg    =@{label="Message"      ;alignment="left"  ;width=50 ; `              Expression={ if (($_.StartMode -eq "Auto") -and ($_.State -ne "Running") ) {"Alarm: Stopped"} };};foreach ($svr in Get-Content "C:\SQLinstances.txt"){    $srvc = Get-WmiObject `            -query "SELECT *                     FROM win32_service                     WHERE    name LIKE '%SQL%'                           OR name LIKE '%MSOLAP%'                          OR name LIKE '%ReportServer%'                          OR name LIKE '%MSDtsServer%'" `             -computername $server `            | Sort-Object -property name;        Write-Output ("Server: {0}" -f $server);    Write-Output $srvc | Format-Table $fmtName, $fmtMode, $fmtState, $fmtStatus, $fmtMsg;    }$results | Export-Csv -Path C:\results.csv</description><pubDate>Sat, 23 Feb 2013 01:56:20 GMT</pubDate><dc:creator>- Win</dc:creator></item><item><title>RE: find the status of SQL Services on multiple servers</title><link>http://www.sqlservercentral.com/Forums/Topic1422885-1550-1.aspx</link><description>Found something, but only for one and it is also not accurate.. Any help is appreciated.$servers=get-content "D:\instances.txt"foreach($server in $servers){  get-wmiobject win32_service -computername $server |   select name,state |    where {    ($_.name -like "SQLAGENT*" -or $_.name -like "SQL*AGENT" ) `    -and $_.state -match "Stopped"} | Out-String}</description><pubDate>Fri, 22 Feb 2013 02:33:10 GMT</pubDate><dc:creator>- Win</dc:creator></item><item><title>find the status of SQL Services on multiple servers</title><link>http://www.sqlservercentral.com/Forums/Topic1422885-1550-1.aspx</link><description>I have a scenario where our DBAs and Server team planned for Maintenance, tonight.We have more than 800 servers that are to be rebooted. Is there any way, I can check the status of SQL Server  and Agent Services, 'running', 'stopped', 'disabled', 'manual', 'if clustered', 'time started' on all multiple servers at a time ? I would like to have a script towards it, if I can provide a servers list into text and then the output pumped to text or excel file.Please help and thanks in advance.</description><pubDate>Thu, 21 Feb 2013 23:07:15 GMT</pubDate><dc:creator>- Win</dc:creator></item></channel></rss>