Hello. 
I'm trying to run batchfiles to do install/uninstall tasks on several machines from the k1000 script module as Online KScript (also tried Offline KScript) during the night. The scripts are running as local "system account" and "allow run whithout logged-in user". The scripts work perfectly when users are logged in, but does not run when user not logged in. 
Eg, a simple batch script to remove old versions of java, several lines with different versions, like:
"
REM JRE Runtime Environment 7.0 Update 67
MsiExec.exe /qn /norestart /X{26A24AE4-039D-4CA4-87B4-2F83217067FF}
REM JRE Runtime Environment 7.0 Update 67 (x64)
MsiExec.exe /qn /norestart /X{26A24AE4-039D-4CA4-87B4-2F86417067FF}
"
works nice with logged-in user, but does not run without. The "Run Now Status" reports success, but the success is, I believe that files and stuff got copied to the client all right, not that the batch completed. 

Asbjørn Førlie

2 Comments   [ + ] Show Comments

Comments

  • Add the argument for verbose logging to your command line. The resulting log will tell you what's going wrong.

    Remember that you can mimic very closely what KBox/SCCM/A. N. Other Deployment System does very simply, by running PSEXEC [computername] [required command line]. That will save you a bunch of faffing about, in order to get your command line sorted.

    Of course, you will already know that PSExec is part of the SysInternals suite of tools, since anyone even remotely connected with PCs will have this in their toolkit.
  • And of course you may have noticed that the JRE runtime installs a bunch of registry entries into the user's HKCU registry which will not be accessible from a local system account.
Please log in to comment

There are no answers at this time

Answers

Answer this question or Comment on this question for clarity