Kaseya Community

Logon Script Agent Instal x64 issue

This question is not answered

We have a logon script that we use to install the kaseya agent, but we noticed that with x64 machines the install attempts every time they log on since they keep the check file (agentmon.exe) in %programfiles(x86)%\Kaseya\agent\agentmon.exe and not in the normal %programfiles% path. We I wrote the script below to check for x86 but it doesnt work. Does anyone else have a solution they use to perform agent installs from a logon script? 


 

 

 

@echo off 

Set RegQry=HKLM\Hardware\Description\System\CentralProcessor\0

REG.exe Query %RegQry% > checkOS.txt 

Find /i "x86" < CheckOS.txt > StringCheck.txt

If %ERRORLEVEL% == 0 (

    goto 32

) ELSE (

    goto 64

)

:32

If not exist "%programfiles%\kaseya\agent\agentmon.exe" goto kaseya

rem exit

:64

If not exist "%PROGRAMFILES(X86)%\kaseya\agent\agentmon.exe" goto kaseya

rem exit

:kaseya

\\NETBIOSDOMAINNAME\Sysvol\domain.local\scripts\customername-workstation.exe /c /e /g=customername /s /i 

rem exit

All Replies
  • On 64bit machines the install dir is in the program files not the program files (x86) directory