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.

Get Active Directory® Administrator's Pocket Consultant now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.