Solved

Powershell services detail listing

Posted on 2014-01-13
2
291 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Synchronize a new Active Directory domain with an existing Office 365 tenant
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
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…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

705 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