Create a maintenance token

task australia Updated Sep 10, 2026 1 min read create-maintenance-token.md
Raw file servicenow.com

Create a maintenance token to use when uninstalling an agent from a Windows device. Administrators require maintenance tokens to ensure that unauthorized employees can't perform an uninstall.

Before you begin

Role required: sn_agent.token_admin

About this task

Maintenance tokens are short-lived by design. The default expiration is after 30 minutes. To modify the expiration time:

  1. Navigate to All > System Properties > All Properties.

  2. Select New.

  3. Configure the following values for the token's expiration time:

    Field Value
    Name sn_agent.maintenance_token.expiry_minutes
    Type integer
    Value <the amount of time, in minutes, before the token expires>
  4. Select Submit.

Procedure

  1. Navigate to All > Agent Client Collector > Deployment > Agent Maintenance Token.

  2. Select New.

  3. Configure the following values for the token:

Field

Description

Alias

Enter a descriptive name for the maintenance token.

Purpose

Select uninstall.

Scope

Select the token's scope:- global: Token applies to all agents.

  • targeted: Token applies only to selected agents. When selecting this option, the Agents field appears.

Agents

Select the Unlock agents ([Omitted image "unlock-icon-acc.png"] Alt text: Unlock agents icon) icon and select the agents for the token to apply to.This field appears only when selecting targeted as the token scope.

4. Select the **Activate** check box to activate the token.
  1. Select Submit.

What to do next

Uninstall the agent using the maintenance token, as described in Uninstall an agent using a maintenance token.

Note: Ensure that you use the maintenance token before it expires.

Parent Topic:Deploying Agent Client Collector on servers

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