-
Notifications
You must be signed in to change notification settings - Fork 7.7k
REQ: Remove-Service cmdlet #4717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
By the way, when the installutil.exe /u did not work. It is something like this. |
@chuanjiao10 thanks,new-service works. |
There isn't a |
@SteveL-MSFT Would you add remove-service to an enhancement list? |
@chucklu I've updated the title of this to reflect the ask, currently no plans to implement this |
@SteveL-MSFT Thanks,I wish you guys can implement it in the future. |
@chucklu workaround for now: get-ciminstance win32_service -filter "name='yourservicename'" | remove-ciminstance |
@SteveL-MSFT thanks,I also find the command in powershell doc PS C:\> sc.exe delete TestService
- or -
PS C:\> (Get-WmiObject win32_service -Filter "name='TestService'").delete() It's not convenient, if you can support Remove-Service, it would be great. |
Get-WmiObject is deprecated and replaced by Get-CimInstance |
thanks |
Closed by #4858 |
Uh oh!
There was an error while loading. Please reload this page.
Hi,
Since we have get-service,start-service,and some other functions about windows service.
Is it possible to add intall-service and uninstall-service?
I am using installutil.exe tool to do the installation and uninstallation.
sometimes, the uninstallation did not work.
then I need to switch to cmd prompt,and use
If you can support install and uninstall service,it will be great.
Environment data
The text was updated successfully, but these errors were encountered: