---
title: "Installing and Configuring Infrasense Active on a Windows based machine"
canonical: "https://thoughtdata.refined.site/space/TUD/55186507/Installing%20and%20Configuring%20Infrasense%20Active%20on%20a%20Windows%20based%20machine"
format: markdown
---
## Installing and configuring Infrasense compact agent on Windows based machines

Infrasense compact agent sensor is a compact sensor which monitors infrastructure related metrics on the system it is installed. Infrasense compact agent sensor collects and forwards data to a dedicated Infrasense sensor. One Infrasense sensor can be setup to receive data from multiple Infrasense compact agent sensors in your IT network. Infrasense compact agent sensor can not communicate directly with Enterprise360 and requires a dedicated Infrasense sensor along with it to work.

***Note****: In order to proceed with Infrasense compact agent sensor software installation on your target windows machine you would need a pre-configured Infrasense sensor already up and running first. Refer to installing Infrasense section if you have not completed the step.*

**Getting right Infrasense compact agent binaries for your Windows OS**

Infrasense compact agent binaries for Windows OS is a common installer for all Windows OS types and versions. 

Following Windows OS types and versions have been tested

1. Windows XP/10/11 Professional
2. Windows 2012/2016/2019/2022 Server

Contact your ThoughtData presales team to get the latest binaries. For old versions you can request the ThoughtData presales team or by sending an email to info@thoughtdata.com.

**Follow the instructions below to install Infrasense compact agent sensor on a Windows machine**

Login as administrator and download the Infrasense compact agent sensor zip file on to your windows machine

The zip file sample format **Win_InfraCompact_<XY>.zip**

Unzip the "Win_InfraCompact_Vxx.zip" file to a local folder

Open the windows Command prompt with  Administrator privileges 

Change directory to the folder where where Win_InfraCompact is extracted - Using **cd **command

Eg:  

      C:<UnzipPath>\> cd Win_InfraCompact

C:<UnzipPath>\> dir  

      .....  

      05/22/2023  03:07 PM    <DIR>          .  

      05/22/2023  03:07 PM    <DIR>          ..  

      05/22/2023  03:07 PM    <DIR>          bin  

      05/22/2023  03:07 PM    <DIR>          etc  

      05/22/2023  12:31 PM             4,168 install.bat  

      05/22/2023  03:07 PM               777 uninstall.bat  

                     2 File(s)          4,945 bytes

 Start the installation by running the install.bat script as below. During the install.bat , the user need to provide the Passive infrasense IP address, for the installation to continue.

Eg:  

      C:<Path>\Win_InfraCompact> install.bat  

      "Using default installation path C:\ThoughtData\"  

      C:\ThoughtData\  

      Proceeding with Infrasense compact installation in the path: C:\ThoughtData\  

      Infrasense Bin Path: C:\ThoughtData\\Infrasense\bin  

      Infrasense Config Path: C:\ThoughtData\\Infrasense\etc  

      Infrasese Log Path: C:\ThoughtData\\Infrasense\logs  

      C:<Path>\Win_InfraCompact\\bin\crond.bat  

      C:<Path>\Win_InfraCompact\\bin\msvcp140.dll  

      C:<Path>\Win_InfraCompact\\bin\ps.bat  

      C:<Path>\Win_InfraCompact\\bin\pthreadVC3.dll  

      C:<Path>\Win_InfraCompact\\bin\start.bat  

      C:<Path>\Win_InfraCompact\\bin\stop.bat  

      C:<Path>\Win_InfraCompact\\bin\thdata_infra_compact.exe  

      C:<Path>\Win_InfraCompact\\bin\vcruntime140.dll  

      C:<Path>\Win_InfraCompact\\bin\wmi_cmds.txt  

      9 File(s) copied  

      C:<Path>\Win_InfraCompact\\etc\td_infra_compact.cfg  

      1 File(s) copied  

              1 file(s) copied.  

      C:\ThoughtData\\Infrasense\logs\start_script.log exist..  

      C:\ThoughtData\\Infrasense\logs\thdata_infra_compact.log exist..  

      Input the passive infrasense ip address:< Ip address Input>  

      ECHO is off.  

      "Installation of Infrasense Compact complete"  

      ECHO is off.  

      "Starting Infrasense Compact service ..."  

      Attempting to stop any instance of Infrasense compact running on the system.  

      ECHO is off.  

      Infrasense Compact service is scheduled to start after 60 secs.  

      Please run the ps.bat script in the install folder with Administrative privileges to check the running status...  

      Press any key to exit

 Run the following steps to know about the running status of Win_InfraCompact component.

<Open the Command prompt with Administrator privileges>

a.) CD C:\ThoughtData\\Infrasense\bin  

      c:\ThoughtData\Infrasense\bin>  

      b.) c:\ThoughtData\Infrasense\bin> ps.bat  

      c:\ThoughtData\Infrasense\bin>ps.bat  

      Command, PID, CPU Time, Memory, User  

      thdata_infra_compact.exe, 17420, AUTHORITY\SYSTEM, 8,964 K, NT  

      Press any key to exit

NOTE:   

      By default after the installation the Win_InfraCompact will be started automatically.

To stop and start the Win_InfraCompact, you can use the following scripts  

          a.) start.bat to start the Win_InfraCompact   

          b.) stop.bat to stop the Win_InfraCompact

<Open the Command prompt with Administrator priviledges>  

      CD C:\ThoughtData\\Infrasense\bin  

      c:\ThoughtData\Infrasense\bin>  

      c:\ThoughtData\Infrasense\bin>dir *.bat  

       Directory of c:\ThoughtData\Infrasense\bin

03/07/2023  12:10 PM             3,847 start.bat  

      03/07/2023  12:10 PM             2,244 stop.bat

The debug logs for any further troubleshooting is available in "C:\ThoughtData\Infrasense\logs" location.

To uninstall the Win_InfraCompact. Run the unisntall.bat as below

<Open the Command prompt with Administrator privileges>  

      CD C:\ThoughtData\\Infrasense\  

      c:\ThoughtData\Infrasense>uninstall.bat  

       

ThoughtData's Infrasense compact agent sensor installer for Windows OS is designed to auto start the agent process post installation and starts on its own every time you reboot your windows system. The install path of the Infrasense compact agent would be **"C:\ThoughtData\"**. In this path the binaries are located in **"bin"** folder and configuration files are located in **"etc"** directories.

Check Infrasense compact agent logs located in **C:\Program Files\ThoughtData\Infrasense\logs** directory for any troubleshooting.

Open **thdata_infra_compact.log **file** **using notepad to check for any errors during installation or while communicating to your Infrasense sensor.

**Note**: Infrasense compact agent sensor for Windows communicates to Infrasense sensor over port **5171. **If there are firewalls in between the path of communication between Infrasense compact agent sensor and Infrasense passive sensor, Port 5171 should be allowed in the inbound direction of Infrasense passive sensor on all firewalls in path of communication. 

This completes your Infrasense compact agent sensor software installation on Windows.