Megosztás a következőn keresztül:


Using the Stop-Service Cmdlet

Stopping a Running Service

The Stop-Service cmdlet is used for stopping a service that is currently running. To stop a service, simply call Stop-Service followed by the service name (that is, the name of the service as stored in the registry):

Stop-Service btwdins

Alternatively, you can add the -displayname parameter and stop the service using the service display name, the name that appears in the Services snap-in:

Stop-Service -displayname "Bluetooth service"
Stop-Service Aliases
  • spsv