Follow

Cannot run defrag.exe on 64-bit Windows agents from KLC Command Shell

SYMPTOM

Cannot access defrag.exe program on 64-bit Windows agents from KLC Command Shell

Directory list command reports "file not found"

The file can be accessed when running the Windows command shell (cmd.exe) from the desktop.

 

CAUSE

The 32-bit version of the Windows command shell (cmd.exe) automatically re-directs all requests to C:\Windows\system32 to C:\Windows\sysWOW64, but there is no defrag.exe in the sysWOW64 folder.

Because the Kaseya agent is a 32-bit process, we cannot run the 64-bit version of cmd.exe (which is what you get if running directly from Windows).

 

SOLUTION

Use this path to access defrag.exe from KLC Command Shell - %windir%\Sysnative\defrag.exe

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Article is closed for comments.