Kaseya Community

CCleaner script for Windows 2008 x64

  • I'm having issues getting scripts to run properly on 64-Bit 2008 server. Especially when I use the 'Execute Shell Command' option to launch a 32-bit application.

    I've tried to run the following from the run box and it works fine, but when I try it from a script it doesn't do anything.

    C:\Windows\SysWOW64\cmd.exe /c c:\temp\ccleaner\ccleaner.exe /auto

    I've tried the following as well:

    C:\Windows\SysWOW64\cmd.exe /c c:\temp\ccleaner\ccleaner.exe /auto
    C:\Windows\SysWOW64\cmd.exe /c "c:\temp\ccleaner\ccleaner.exe /auto"
    "C:\Windows\SysWOW64\cmd.exe /c c:\temp\ccleaner\ccleaner.exe /auto"
    "C:\Windows\SysWOW64\cmd.exe /c" "c:\temp\ccleaner\ccleaner.exe /auto"

    I thought I would created a batch file and launch it via the script. I tested it from by clicking the bat file and I also tested it by typing,
    C:\Windows\SysWOW64\cmd.exe /c c:\temp\ccleaner\ccleaner.bat in a run box and both methods work fine, but I am unable to launch it via a script.


    Options I’ve tried for the batch file:

    C:\Windows\SysWOW64\cmd.exe /c c:\temp\ccleaner\ccleaner.bat
    C:\Windows\SysWOW64\cmd.exe /c "c:\temp\ccleaner\ccleaner.bat"
    "C:\Windows\SysWOW64\cmd.exe /c c:\temp\ccleaner\ccleaner.bat"
    "C:\Windows\SysWOW64\cmd.exe /c" "c:\temp\ccleaner\ccleaner.bat"

    Next I attempted to launch the file using the ‘Execute File’ option, but that isn’t working either. I’ve entered the following in the ‘Enter the full path and filename’ option:

    Enter the full path and filename: c:\temp\ccleaner\ccleaner.exe
    Enter arguments to pass to the executable: /auto

    Enter the full path and filename: “c:\temp\ccleaner\ccleaner.exe”
    Enter arguments to pass to the executable: /auto

    Enter the full path and filename: “c:\temp\ccleaner\ccleaner.bat”
    Enter arguments to pass to the executable:

    Enter the full path and filename: c:\temp\ccleaner\ccleaner.bat
    Enter arguments to pass to the executable:

    I must be missing something. Please help!

    Legacy Forum Name: CCleaner script for Windows 2008 x64,
    Legacy Posted By Username: RDMTECH
  • Can anyone help?

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: RDMTECH