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
Answers (0)
Please log in to answer
Be the first to answer this question
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