Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How do I uninstall a Windows service using a PowerShell script?

Writer Emily Wong

I want to find and uninstall a Windows service.

How can I accomplish this using a PowerShell script?

1 Answer

(Get-WmiObject Win32_Service -filter "name='<service_name>'").Delete()

For more information:
Get-WmiObject
Delete method of the Win32_Service class

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy