I'm trying to use scripting via my K1000 to update Java. I have a script that uses a wmic command to uninstall the previous one, and then run a silent install for the newer version of Java. Even with "Allow run without a logged-in user" checked, the script fails unless I log into the computer first. If I log into the computer and then kick off the script from Kace, it works perfectly. I have the script set to run as a user with appropriate permissions, so that shouldn't be an issue.

I can provide more information if I need to, but if anyone has an idea what the problem might be I would be very grateful.
1 Comment   [ - ] Hide Comment


  • FYI: I've never gotten "Allow run without a logged-in user" to work consistently, so now I only use it in conjunction with "before login"
    • Thanks for the input. The Kace tech I talked to had me test with a pre 6.4 version of the agent and it worked like a charm. This particular issue was definitely an agent defect, though I'm not sure if it's exclusive to Java installs.
Please log in to comment

Community Chosen Answer


Why run it as the user? Just run it with the System account.
Answered 04/06/2016 by: VBScab
Red Belt

  • Even when running it with the System account, it still fails without a user logged into the computer.
    • I know next to nothing about Kace scripting but I believe there's a check-box on the script page that restricts a script's execution to when a user is logged in. Have you unchecked that check-box?
      • Yea, I put in my original post that I did check the box to allow running without a logged-on user.
Please log in to comment
Answer this question or Comment on this question for clarity


Does your script attempt to access network resources at all, e.g. a network share?
Answered 04/08/2016 by: VBScab
Red Belt

  • It does not. The only things it does is the wmic uninstall command: "wmic product where "name like 'java%%'" call uninstall /nointeractive" and then attempt the java install.

    The uninstall part appears to be working properly. The Java install does not. The log for the script in Kace says status code 1603.
    • I ended up opening a ticket with Kace support. After some troubleshooting, he thinks it may be a defect in the K1000 appliance or the agent.
Please log in to comment
Admin Script Editor
Admin Script Editor is an integrated scripting environment available free here at ITNinja