Last Updated: February 25, 2016
·
503
· davidsavagejr

Restart windows services using a wild card

Sometimes you may have a whole bunch of services that need to be restarted. Who wants to bother restarting them all if you can just match on the service name

get-service | WHERE-Object {$_.DisplayName -like "Foo*"} | restart-service