Scripting Question

Issues with pushing out scripts via KACE - maybe there is a better way?

09/12/2018 1251 views
I'm new to scripting with KACE. Previously we were using SCCM and I could easily make packages to push out whatever file/batch I wanted and am looking to do something similar with KACE. So my current scenario is that I want to push out the Adobe Flash Player Uninstaller to a group of machines. The issue is that they have various old versions of Flash Player so I want to do a blanket push that sends and runs this file on all of them. In my script I have the following:

Windows Runs As: Local System

User Notify: (not notifying)

Dependencies: uninstall_flash_player.exe
(I also tried including the batch file to run the program as a dependency which did not work either, currently I am not doing it that way)

On Success:
Launch A Program
File: uninstall_flash_player.exe
Wait For Completion checked
Parameters: -uninstall

So when I run that it is pulling the uninstall_flash_player.exe to the target computer (it shows under C:\ProgramData\Dell\Kace\kbots_cache\packages\kbots\65) but it is seemingly not running it and flash player is not removed. Side note: If I use a batch file, the file literally just tells it to run: uninstall_flash_player.exe -uninstall and that has always worked fine. 

Any ideas what I am doing wrong here?
6 Comments   [ + ] Show comments


  • Did you use the Run Now feature (Under scripts, Run Now, select a machine and the script)? If so, check the log to see what KACE reports happened.
  • What am I looking for? This is from kagent4.log, didn't see any flashplayer stuff in the other logs and this doesn't seem to tell me much:

    [2018-09-10.16:40:36][runkbot:KLaunchClient::DumpState] Launch State: Command="Flashplayerunistall.bat" WorkingDir="C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\65" Timeout=3600000 ShouldDetach=0 ShowWindow=0 Redirect_stdout=1 Redirect_stderr=0 Desktop=winsta0\default Using Wait_Override=0
    [2018-09-10.16:40:36][runkbot:KLaunchUtils::DoesTokenH] DoesTokenHaveLSAPriviledges returning: 1
    [2018-09-10.16:40:36][runkbot:KLaunchUtils::GetIdOfAct] GetIdOfActiveUser: SECURITY_LOGON_TYPE: 2(18) There are no more files.

    [2018-09-10.16:40:36][runkbot:KLaunchUtils::IsSessionA] IsSessionActive: connectState=0
    [2018-09-10.16:40:36][runkbot:KLaunchSession::CreateSe] KLaunchSession::CreateSessionOnDesktop
    [2018-09-10.16:40:36][runkbot:KLaunchSession::CreateTo] KLaunchSession::CreateToken
    [2018-09-10.16:40:36][runkbot:KLaunchSession::CreateSe] KLaunchSession::CreateSessionOnDesktop Run as current user "SYSTEM"
    [2018-09-10.16:40:36][runkbot:KLaunchClientImpl::Launc] KLaunchClientImpl::LaunchInSession()
    [2018-09-10.16:40:36][runkbot:KLaunchClientImpl::Setup] KLaunchClientImpl::SetupStartInfo *Don't CreateStdPipe StdIn Pipe (disabled)
    [2018-09-10.16:40:36][runkbot:KLaunchClientImpl::Launc] KLaunchClientImpl::LaunchInSession IsBatchCommand cmd=[CMD.EXE /C "C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\65\Flashplayerunistall.bat"]
    [2018-09-10.16:40:36][runkbot:KLaunchClientImpl::Launc] KLaunchClientImpl::LaunchInSession cmd=[CMD.EXE /C "C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\65\Flashplayerunistall.bat"] path=[C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\65]
    [2018-09-10.16:40:36][runkbot:KLaunchClientImpl::Launc] KLaunchClientImpl::LaunchInSession - CreateProcessAsUser returned successfully
    [2018-09-10.16:40:38][runkbot:KLaunchClientImpl::ReadS] KLaunchClientImpl::ReadStdPipe End of ReadStdPipe method
    [2018-09-10.16:40:38][runkbot:KLaunchClientImpl::Proce] KLaunchClientImpl::ProcessResults - End
    [2018-09-10.16:40:38][runkbot:ProcessOps_LaunchProgram] runkbot ----- completed -----
  • chucksteel is talking about the Script logs from the Admin console.

    Scripting › Run Now Status › Run Now Status Detail

    You should have information about pending or failed execution there.

    Also if not, try to target just one machine for now.
  • Ah. It just says:

    Output Log
    Running as SYSTEM
    Launched Process: uninstall_flash_player.exe
    Activity Log
    verify - on_verify_success
    verify - on_verify_failure
    verify - launch_program
    Launching program: 'C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\65\uninstall_flash_player.exe' '-uninstall' wait='true'
    Debug Log
    Running kbot: runkbot 65 1536614261
    KBotScript::LogScriptInfo - Start
    id=65 name=DCD - Flashplayer Uninstall version=1536614261 type=policy
    execute disconnected=false logged_off=true
    execute events
    KBotScript::LogScriptInfo - Finish
    KBotScript::LogScriptInfo - Start
    id=65 name=DCD - Flashplayer Uninstall version=1536614261 type=policy
    execute disconnected=false logged_off=true
    execute events
    KBotScript::LogScriptInfo - Finish
    KBotScriptManager::CleanupDependencies - clean up dependencies in kbot directory C:\ProgramData\Dell\KACE\kbots_cache\\packages\kbots\65\
    CleanupDependencies: file uninstall_flash_player.exe is part of the dependency list, keep the file
    runkbot ----- launching [path='C:\ProgramData\Dell\KACE\kbots_cache\packages\kbots\65' program='uninstall_flash_player.exe' parms='-uninstall' wait='true'] -----
    runkbot ----- completed [exitCode=0] -----
  • If you run it manually on a computer are there any prompts? It isn't clear to me that the software runs silently.
  • There are no prompts if you run it manually

Be the first to answer this question

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:


This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ