Solved

Powershell services detail listing

Posted on 2014-01-13
2
290 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
ID: 39776293
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
ID: 39776311
It works perfectly. Thank you very much
0

Featured Post

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

"Migrate" an SMTP relay receive connector to a new server using info from an old server.
Synchronize a new Active Directory domain with an existing Office 365 tenant
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the adminiā€¦

733 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