Require a maintenance token for Windows uninstalls

task brazil Updated Sep 10, 2026 1 min read require-maintenance-token-uninstall.md
Raw file servicenow.com

Require using a maintenance token when uninstalling an agent from a Windows device. A maintenance token provides a layer of administrative control so that unauthorized personnel can't perform the uninstall.

Before you begin

Role required: sn_agent.token_admin

Procedure

  1. Navigate to the Agent Client Collector Setup wizard, as described in Install the Agent Client Collector on a Windows machine manually.

  2. Select the Require maintenance token for uninstall check box on the Agent Client Collector Configuration page.

  3. Complete the installation and exit the setup wizard.

    Note: Alternatively, you can enable requiring a maintenance token by using the following single line command:

    Text
    msiexec /i <msi_file_path> /quiet /qn /norestart ACC_API_KEY=<key_value> ACC_MID=wss://<mid_ip>:<websocket_port>/ws/events ACC_ALLOW_LIST=False UNINSTALLVALIDATION=1
  • Enable uninstall validation during agent upgrade
    Configure requiring a maintenance token to uninstall agents during agent upgrade. A maintenance token provides a layer of administrative control so that unauthorized personnel can't perform the uninstall.

Parent Topic:Deploying Agent Client Collector on servers

Search documentation
Search document titles and file paths on the brazil branch