Powershell Services Script - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Computer Support Topics (https://www.supportforums.net/forumdisplay.php?fid=4) +---- Forum: Microsoft Support (https://www.supportforums.net/forumdisplay.php?fid=5) +---- Thread: Powershell Services Script (/showthread.php?tid=21482) |
Powershell Services Script - AceInfinity - 08-16-2011 Code: $Services_ = Get-Service | write-output Here's my newest powershell script, a little more advanced, using logic functions like the if statement to sort out Running and Stopped processes with an integer count for each process and details after both object items have been listed. RE: Powershell Services Script - Xzotic - 08-17-2011 oooo very nice. I love powershell myself. I use it all the time at work. Very useful. I'll give this script a go RE: Powershell Services Script - AceInfinity - 08-17-2011 Here's an example of what it looks like in action: *The list was too big, so I can't fit it into one screenshot, but it will list out Running services, numbered starting from 1). Then it will list Stopped services starting from 1). What you see in the script here is the last of the list in the Stopped services, and the information that it displays at the very end as a sort of "Statistic." |