How do I uninstall a Windows service using a PowerShell script?
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