DeleteServices Action
Collapse the table of content
Expand the table of content

DeleteServices Action

The DeleteServices action stops a service and removes its registration from the system. This action queries the ServiceControl table.

Sequence Restrictions

The services actions must be used in the following sequence:

  1. StopServices
  2. DeleteServices
  3. Any of the following actions: InstallFiles, RemoveFiles, DuplicateFiles, MoveFiles, PatchFiles, and RemoveDuplicateFiles actions.
  4. InstallServices action
  5. StartServices

ActionData Messages

FieldDescription of action data
[1]Service display name.
[2]Service name.



This action requires the user be an administrator or have elevated privileges with permission to delete services or that the application be part of a managed installation.



Community Additions

© 2015 Microsoft