Trying to run a Script that keeps failing. Getting Status code:1. I am able to run the batch file from command prompt it works just fine. But when trying run it through kace it fails.
This is the Script I am running
\\img10\WordPerfect_2021$\English\Setup.exe /q FORCENOSHOWLIC=1 INSTALL_APP=wordperfect REBOOT=ReallySuppress SERIALNUMBER=SerialNumber UPGRADE_PRODUCT=All UPGRADE_PRODUCT_DEFAULT=Off MIGRATE_PRODUCT=Latest
Output Log
Running as SYSTEM Creating process returned non-zero: C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\209\kace2249.bat : (0) The operation completed successfully. Error Code: 0 Status Code: 1Activity Log
verify - on_verify_success verify - on_verify_failure verify - launch_program Launching program: 'C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\209\kace2249.bat' '' wait='true'Debug Log
Running kbot: runkbot 209 1641318251r1 KBotScript::LogScriptInfo - Start id=209 name=Install WordPerfect 2021 version=1641318251r1 type=policy execute disconnected=false logged_off=true execute events KBotScript::LogScriptInfo - Finish KBotScript::LogScriptInfo - Start id=209 name=Install WordPerfect 2021 version=1641318251r1 type=policy execute disconnected=false logged_off=true execute events KBotScript::LogScriptInfo - Finish KBotScriptManager::CleanupDependencies - clean up dependencies in kbot directory C:\ProgramData\Quest\KACE\kbots_cache\\packages\kbots\209\ runkbot ----- launching [path='C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\209' program='kace2249.bat' parms='' wait='true'] -----
0 Comments
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
KevinG
2 years ago
The script in SMA is currently configured to run using the Local System account.
The LocalSystem account is a predefined local account used by the Windows service control manager.
This is not the same as running the script from the command line using the current login user.
You can change the "Windows Run As" for this script in the SMA scripting module to run as a login user or a particular user account.
Comments:
-
correct
Running as SYSTEM
is not the same as running something as XXXX username. - Channeler 2 years ago