How Do I Uninstall a Windows Service Using a Powershell Script?

How Do I Uninstall a Windows Service Using a Powershell Script?

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

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

Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.