Removes/deletes a service.


Uninstall-Service [-Name] <String> [-WhatIf] [-Confirm] [<CommonParameters>]


Removes an existing Windows service. If the service doesn't exist, nothing happens. The service is stopped before being deleted, so that the computer doesn't need to be restarted for the removal to complete. Even then, sometimes it won't go away until a reboot. I don't get it either.

Related Commands


Name Type Description Required? Pipeline Input Default Value
Name String

The service name to delete.

true false
WhatIf SwitchParameter false false
Confirm SwitchParameter false false
CommonParameters This cmdlet supports common parameters. For more information type
Get-Help about_CommonParameters.


Uninstall-Service -Name DeathStar

Removes the Death Star Windows service. It is destro..., er, stopped first, then destro..., er, deleted. If only the rebels weren't using Linux!