OBLYTECH Logo
OBLYTECH Logo

Install the Agent Client Collector on Windows using silent installation

To install the Agent Client Collector on Windows using silent installation, download the MSI, prepare the MID Server websocket connection and API key, then run msiexec with unattended installation switches. Set the service account, command allow list, and startup behavior deliberately, test the package on one machine, and expand deployment after checking the installed service.

Prepare the Windows deployment package

Silent installation combines agent installation and configuration in a command suitable for repeated deployment. A manual wizard installation is suited to testing a single system. Before distributing the package, decide which Windows machines belong in the deployment and which MID Server connection each group should receive. Keep the approved MSI and its parameter set together so a connection change does not accidentally accompany an unrelated package change.

The role required for the silent installation procedure is agent_client_collector_admin. In the current navigation, open All > Agent Client Collector > Deployment > Agent Downloads. In Windows Download, select the Download icon to obtain the MSI installer. Check the navigation and supported properties on your instance and release before packaging; older installations can present a shorter Agent Downloads path.

Verify the target operating system and version, and prepare the Agent Client Collector websocket server on the MID Server. Current installations also require access to the ServiceNow installation endpoint. Have the network team confirm that dependency through its approved endpoint inventory rather than assuming that access to the instance covers installation traffic. Use Agent Client Collector installation and deployment to place this Windows package within the wider rollout plan.

Build the silent installation command

The basic command uses msiexec with /i followed by the MSI file path, then /quiet /qn /norestart. Add ACC_API_KEY for the MID Server websocket API key and ACC_MID for the websocket connection value. Quote a file path containing spaces. Prepare these inputs before running the package so the unattended process does not depend on someone completing wizard fields.

A command template is: msiexec /i “MSI_FILE_PATH” /quiet /qn /norestart ACC_API_KEY=”MID_API_KEY” ACC_MID=”MID_WEBSOCKET_VALUE” ACC_ALLOW_LIST=True START_SERVICE=True. Replace the capitalized placeholder values with your approved inputs. The template keeps connection details abstract; MID_WEBSOCKET_VALUE must be replaced with the complete websocket connection value, including its scheme, host, port, and events path.

ACC_API_KEY authenticates access to the MID Server websocket. ACC_MID identifies that websocket endpoint. They serve different purposes: correcting the host or port does not correct a mismatched key. During the pilot, check the configured connection against the MID Server setup and verify that the key belongs to the intended endpoint. Keep the real key out of broadly shared rollout notes.

Set ACC_ALLOW_LIST explicitly. True enables the allow list of checks permitted to execute, and True is its default. False disables it. Treat that choice as a deployment decision with the people responsible for checks, rather than copying a sample command without reviewing its effect. A package that installs successfully with the wrong execution policy still needs correction before wider distribution.

Choose the Windows service identity

Without a different existing account supplied through LOCALUSERNAME, silent installation creates the local servicenow user. Its password is randomly generated and is not stored in the system. Review that account choice before the pilot, especially where Windows account policies or service ownership requirements affect the rollout. Record the chosen identity beside the deployment parameters so the support team can recognize the intended configuration.

LOCALUSERNAME can identify SYSTEM, LOCALSERVICE, a group managed service account in DOMAIN\gMSA$ form, or a local username. SYSTEM, LOCALSERVICE, and the gMSA option do not require a configured password. Those identities require their corresponding MSI account commands; do not assume that changing LOCALUSERNAME alone completes the account setup. Validate the selected identity on the pilot machine before promoting the package.

For a conventional domain user, ISDOMAIN controls whether DOMAIN is used: 0 ignores DOMAIN and 1 uses it. DOMAIN applies to domain user accounts rather than gMSA. The current silent installation parameter list includes LOCALUSERPASSWORD. Keep password handling tied to the exact installer package being deployed instead of transferring properties from a different installation procedure.

PASSWORD_NEVER_EXPIRES defaults to false. Setting it to true changes password expiration behavior. Have the account owner approve that choice as part of the deployment configuration. Separately, START_SERVICE defaults to True: the service starts after installation. Set it to false when your rollout requires a separate start step, and make that step part of the deployment record.

Set MID Server connections and installation location

For multiple MID Servers, put comma-separated websocket connection values inside one quoted ACC_MID value. Keep the entire list together as one property value when your deployment system constructs the command. The installer adds those values to acc.yml, and the agent connects to the first available MID Server in that list. Review the resulting file rather than relying on the appearance of the deployment command.

The backend-url section of acc.yml can hold a secondary MID Server entry using YAML list syntax with a quoted connection value. The host portion can use the MID Server FQDN or CNAME. When editing that file, preserve YAML formatting and distinguish the host name from the websocket port. A transcription error in either changes the destination the agent attempts to reach.

A connection list deserves its own pilot check. Verify that the deployed configuration contains the intended entries in the intended order. For broader connection planning, use configuring multiple MID Servers for Agent Client Collector monitoring. Treat high availability as a separate design decision involving Auto MID Selection or a load balancer virtual IP.

SN_PROG_ROOT sets the application installation path in the current installer parameters. Enclose a custom path in quotation marks, particularly when it includes spaces. If you change the application location, reflect that choice in your installation checks and support instructions. Do not use a successful check of a default directory as proof that a package targeting a custom directory installed correctly.

Verify the pilot before deploying in batches

Inspect the Windows service and the installed files after the first deployment. The service name is AgentClientCollector. The default application directory is C:\Program Files\ServiceNow\agent-client-collector. Service files are under C:\ProgramData\ServiceNow\agent-client-collector, including cache, config, and log folders. These give the operator concrete places to inspect when an unattended run produces no visible wizard feedback.

  1. Check that the application files are in the selected installation location.
  2. Inspect the service identity and compare it with the approved account choice.
  3. Check service startup against the START_SERVICE value used in the package.
  4. Read acc.yml and compare its MID Server entries with the deployment inputs.
  5. Review the agent logs and confirm the expected monitoring behavior before expanding the batch.

Separate installation checks from the monitoring outcome. A present service does not by itself demonstrate that the selected checks are operating as intended. Use Agent Client Collector monitoring when defining the acceptance checks for the people who will operate the agent.

If a pilot machine fails acceptance, compare its package inputs with a working pilot before changing several settings together. Check the MSI location, the chosen application directory, the service account, and the stored connection list in that order. For a service that is present but stopped, first check whether the package deliberately used START_SERVICE=false. For a service that runs without the expected connection, inspect the endpoint and API key separately. Preserve the original deployment inputs and the observed result so the next test can isolate a change. Expand the rollout after the corrected package passes the same acceptance checks.

For help planning this work, see ServiceNow implementation.

Questions about Windows deployment exceptions

Can the agent connect without a MID Server?

Yes. ITOM Cloud Services provides a separate route that requires the sn_itom_cloud_svc plugin and an active agent registration key. Its unattended command uses CONNECT_WITHOUT_MID, ACC_CNC, REGISTRATION_KEY, and INSTANCE_URL. Prepare that connection model separately from the MID Server websocket package.

What should change when preparing a cloned image?

Set the MSI property GOLDEN_IMAGE=true to enable golden image mode for cloning additional agents. Include that property in the image preparation record so an image build is distinguishable from an ordinary deployment to an existing Windows machine.

What should be preserved before replacing an installed version?

Back up acc.yml, check-allow-list.json, agent_now_id, and agent_now_keystore before a manual upgrade. Preserve the identity files for restoration after installing the replacement agent. Restoring configuration backups replaces configuration values, so review what should be retained before starting that upgrade workflow.

Does a repeated security event from account creation need attention?

The default servicenow account creation can generate a host security event. If that event repeats, open a support case rather than treating repeated account creation as an accepted rollout result. Retain the affected machine and installation details for investigation.