command line program windows services code example Example: uninstall service cmd sc delete "service name"