Solved

Powershell services detail listing

Posted on 2014-01-13
2
279 Views
Last Modified: 2014-01-13
Hello Experts,

I am looking for a PS script allowing me to list services running on a server farm. Ideally the output CSV should say Service Name, Status, Startup Type, Log on As.

Many thanks for your help.
0
Comment
Question by:08519826
2 Comments
 
LVL 40

Accepted Solution

by:
Subsun earned 500 total points
Comment Utility
User the following code.. you can input the server names in C:\server.txt file..
Get-Content C:\server.txt | %{
	Get-WmiObject Win32_Service -ComputerName $_ | 
	Select __SERVER,Name,StartMode,State,StartName} | 
Export-Csv C:\report.csv -nti

Open in new window

0
 

Author Comment

by:08519826
Comment Utility
It works perfectly. Thank you very much
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Why would I want to create a function for tracking messages? I am glad you asked. As with most monotonous/routine tasks, human error tends to creep in after doing the same task over and over again. By creating a function, you load the function once…
This article will help you understand what HashTables are and how to use them in PowerShell.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

6 Experts available now in Live!

Get 1:1 Help Now