Java script- run without logged in user
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
[ + ] Show 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" - JasonEgg 8 years ago
-
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. - Xeric 8 years ago
Answers (2)
Please log in to answer
Posted by:
anonymous_9363
8 years ago
Why run it as the user? Just run it with the System account.
Comments:
-
Even when running it with the System account, it still fails without a user logged into the computer. - Xeric 8 years ago
-
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? - anonymous_9363 8 years ago
-
Yea, I put in my original post that I did check the box to allow running without a logged-on user. - Xeric 8 years ago
Posted by:
anonymous_9363
8 years ago
Does your script attempt to access network resources at all, e.g. a network share?
Comments:
-
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. - Xeric 8 years ago-
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. - Xeric 8 years ago