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
Solved

Powershell services detail listing

Posted on 2014-01-13
2
289 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 Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A procedure for exporting installed hotfix details of remote computers using powershell
The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

839 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