UnInstallService

Uninstall Service

Related Topics Link IconRelated Topics 

Definition

Use this command to uninstall a service or a device for Windows. If required, the service will be stopped before it is uninstalled.

In case an error occurs when running this command, you can specify the option Stop script on error in the Script Editor. If the error actually occurs, the script stops, thus preventing subsequent errors, and the associated policy is shown as not compliant.
This also applies if you set the package property Error handling to Always terminate script on error (a default setting for new packages).