Last updated: 2026-03-31
The Windows Discovery Agent Service Wrapper is an executable available for i386 (32-bit) and x64 (64-bit) architectures. This service automates agent execution, ensuring inventory details are sent to Freshservice at regular intervals.
``` Note: Available only for new signups after the 31 March, 2026 release. If you signed up earlier, refer to the existing ITAM documentation. ```
Prerequisites
You need the following before the installation:
Installation overview
To successfully install the service, you require the following three files:
You can install using the following two ways:
Option 1: Using the PowerShell Script
The PowerShell script automates the placement of files based on the machine architecture. Follow these steps to install:
1. Download the combined ZIP file and extract the contents to your local file system.
2. Enable PowerShell remote execution by running: Set-ExecutionPolicy RemoteSigned
3. Place the downloaded agent executable into the extracted folder.
4. Optionally, modify the d42config.json file if you need to adjust the scan interval or add specific arguments.
5. Run the installation script: .\\D42Installer.ps1
6. Optional, revert the execution policy if required by your security guidelines.
Option 2: Install using sc commands
If you prefer manual configuration, you can use the Windows Service Control sc tool. By default, the service wrapper looks for an agent named d42winagent.exe under C:\\Program Files\\Device42.
To install using sc commands, follow these steps:
1. Save the agent executable using the correct name and location: C:\\Program Files\\Device42\\d42winagent.exe.
2. Create the service using the following command: sc create d42AgentService binPath= "C:\\Program Files\\Device42\\d42\_winservice\_x64.exe" start= auto
Note: Ensure there is a space after the = sign in the command; this is critical for the command to execute.
3. Start the service through the UI or the command line: sc start d42AgentService
4. Add a description to the service for better visibility: sc description d42AgentService "D42 service that calls the agent to run every N hours to send inventory details to Device42"
To manage the service, you can use the following optional commands:
Note: On Windows, sc commands read from %windir%/system32 by default. If you do not wish to use the C:\\ProgramData path, place your d42config.json in the system32 directory.
Arguments for the Config Files
The service calls the agent on service start and then again every 8 hours by default. You can override these values in the d42config.json file.
Example configuration:
{
"executablePath": "c:\\\Program Files\\\Device42\\\d42\_winagent.exe",
"WorkingDir": "c:\\\ProgramData\\\Device42",
"arguments": \["-host=https://10.92.11.63","-skip-software=true"\],
"interval": 2
}
Troubleshooting
Successful installation is confirmed when the service appears in the Windows Services manager and the agent log begins populating. If the service fails to start, consider the following: