How to Stop a Remote Service

I find rather often that I need to stop a service on a bunch of remote systems.  Here is a hand trick.  Notice I do a set-service instead of a stop-service, which only works on the local machine.  You have to use set-service on a remote computer. You can modify the below code and use it with the Simple File Copy Script as an example on how to stop a bunch of services

foreach ($server in get-cspool | ?{$ -match “Registrar:”} | %{$_.Computers} ) {

get-service -DisplayName “Backup Exec*” -ComputerName $server | %{set-service -Name $_.Name -Status Stopped -WhatIf}


5 thoughts on “How to Stop a Remote Service

  1. Propecia Online Prices Tetracycline Vendors Medicamento Cialis 10 [url=]Buy Cialis[/url] Vendo Cialis Concepcion Controindicazioni Cialis 5 Mg Pamelor

  2. Achat Cialis Express On Line Doxycycline Best Retail Pharmacy Viagra Price [url=]Cialis[/url] Propecia Opinion 1 Mg Cialis 20 Mg X 30 Pill For $76.5 Amoxicillin Trihydrate Picture

  3. Prix Comprime Cialis Can You Buy Cialis In Dubai Online Clomid No Prescription [url=]buy cialis[/url] Securetabs Return Viagra Generico In Italia Propecia If

Leave a Reply

Your email address will not be published. Required fields are marked *