Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 8583

Pause a Service using pause method in get-service

$
0
0

trying to pause a service I found this in a book called powershell in depth but this just doesn't work.  I can't figure out why.

Get-Service -name B* | foreach { $_.Pause() }

I get this error "Exception calling "Pause" with "0" argument(s):"


Viewing all articles
Browse latest Browse all 8583