From the course: Learning PowerShell

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Get-Service and Get-Member

Get-Service and Get-Member - PowerShell Tutorial

From the course: Learning PowerShell

Start my 1-month free trial

Get-Service and Get-Member

- [Voiceover] So let's actually run our first cmdlet inside of PowerShell, and if you've never run PowerShell you're gonna run the first cmdlet I ever ran when I started working with PowerShell many years ago, and that is Get Service. I'm just gonna type in Get-Service my good ol' friend and hit Enter, and it's gonna give me a list of results of all the services. Now you might be thinking, "Matt, I have a control panel to do that for me." You're exactly right, but remember the power behind PowerShell is I can do this not only on the server that I'm sitting on, but all my other remote servers. There's another parameter called Computer Name that I can send in to Get Service, that'll find out information for me across the services inside of my environment. You'll also notice that I have three parameters, Status, Name and Display Name that came back up. Well one of the great things that I can do here is I can actually query those services in and find out information; let's say that I…

Contents