O'Reilly logo

Active Directory® Administrator's Pocket Consultant by William Stanek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

STOP-SERVICE

A Windows PowerShell command for stopping one or more running services.

stop-service [-displayname [ServiceNamel, ServiceName2,...]]
-include [ServiceNamel, ServiceName2,...]
-exclude [ServiceNamel, ServiceName2,...]

stop-service [-name] [ServiceNamel, ServiceName2,...]
-include [ServiceNamel, ServiceName2,...]
-exclude [ServiceNamel, ServiceName2,...]

Note

Windows PowerShell also has commands for starting (start-service), restarting (restart-service), suspending (suspend-service), and resuming (resume-service) services. These commands have the same syntax as stop-service.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required