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
Written by Dave Savage
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Powershell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#