From the course: Microsoft 365 Endpoint Administrator Associate (MD-102) Cert Prep by Microsoft Press
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Implement Windows Powershell remoting - Microsoft 365 Tutorial
From the course: Microsoft 365 Endpoint Administrator Associate (MD-102) Cert Prep by Microsoft Press
Implement Windows Powershell remoting
- [Instructor] So Windows PowerShell is based on a verb and noun construction. The verb is the action that you want to perform. Get, Set, Add, and so on. The noun is the resource. Service, LocalUser and so on. Note that the noun is always singular despite the fact that you're dealing with objects that are pluralized. So some examples. In this example we're retrieving a list of services, Get-Service, and then we're filtering the returned list by using where-object. And then in brackets we're specifying that we're looking for objects that have a status that's equal to Running. And we separate those two commands, Get-Service and where-object by using the vertical pipe operator. A similar construction here, Get-Service is retrieving a list of services. Now we're looking for a subset of those based on the fact that the name of the service starts with win and then an asterisk, that's a wild card. So any service that starts with the first three letters win will be retrieved. But then we're…