/build/static/layout/Breadcrumb_cap_w.png

Running batch file without logged in user

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
  • 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. - anonymous_9363 9 years ago
  • 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. - EdT 9 years ago

Answers (0)

Be the first to answer this question

 
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