For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Windows installation

Interactive setup

Use the Windows installer when you want an interactive setup on a Windows host.

1

Download the installer

On the Releases page, download the latest Windows setup executable :

Download precompiled Windows binaries

Then double-click the file to start the installer.

Windows may prompt you to run the installer as an administrator.

2

Choose the setup language

English and French are currently supported.

3

Start the installation

On the welcome screen, click Next.

4

Accept the license agreement

Accept the license agreement, then click Next.

5

Configure the agent

Fill in the agent settings:

  • URL: server URL.

  • Username: user account with permission to add, update, and view inventory. See Groups and permissions.

  • Password: password for that user.

  • Certificate: .pem or .crt certificate to use for HTTPS connections.

  • Validate certificate: enable this option to verify the server certificate.

6

Configure inventory settings

Set the agent inventory options:

  • Inventory mode

  • Log level

7

Choose how the agent runs

Choose whether the agent should run as a Windows service.

8

Select the installation folder

Choose the installation destination.

9

Install the agent

Confirm the installation by clicking Install.

10

Finish the setup

Click Finish to exit the installer.

Silent installation

The setup is an Inno Setup package, so it accepts the standard silent switches plus the agent parameters, for mass deployment:

OCSInventory-Agent-Setup-3.0.0.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART ^
  /LOG="C:\Windows\Temp\ocs-setup.log" ^
  /URL=http://server_ip:port ^
  /USERNAME=username ^
  /PASSWORD=password ^
  /MODE=1 ^
  /LOG_LEVEL=3 ^
  /SERVICE=1

The agent parameters are /URL=, /USERNAME=, /PASSWORD=, /MODE=0-4, /LOG_LEVEL=0-4, /CERTIFICATE="path", /BYPASS_CERT=0|1, /SERVICE=0|1 and /NOW=0|1 (run a single inventory right after the install).

Check C:\ProgramData\OCSInventory-Agent\config.json and the service state after deployment:

Get-Content 'C:\ProgramData\OCSInventory-Agent\config.json'
Get-Service 'OCSInventory Agent'

Reinstalling over an existing version is supported: the setup silently runs the previous uninstaller first. The uninstaller removes the service and the program files but keeps C:\ProgramData\OCSInventory-Agent, and the new install then rewrites config.json from the parameters passed, so inventory data survives while the configuration is replaced.

Last updated