Deleting Windows Services In PowerShell
For deleting a Windows service in Windows CMD, you have to call
1sc delete "Service Name"
This doesn't work in PowerShell, because sc
is an alias for the cmdlet Set-Content
in PowerShell. Deleting Windows service in PowerShell can be done by calling
1sc.exe delete "Service Name"
Note, that PowerShell has to be run as administrator.