To do this in Powershell, use sc.exe delete service instead So sc delete service will actually create a file called delete with the content service.
Note to PowerShell users: sc is aliased to set-content. You can do this by searching for the command prompt on your start menu and then right-clicking and selecting 'Run as administrator'. If you get errors above about not having the necessary access rights to stop and/or delete the service, run the command prompt as an administrator. Note: You need to run the command prompt as an administrator, not just logged in as the administrator, but also with administrative rights. Use the SC command, like this (you need to be on a command prompt to execute the commands in this post): SC STOP shortservicename