/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Scripting - Payload file download completes but doesn't unzip

10/03/2019 266 views

I have a script that installs office 365.  Attached is the list of tasks. but it seems to be failing at the part where it unzips the Office365.zip late in task 1. If I manually unzip the file in C:\ProgramData\Quest\KACE\downloads\217906 to C:\ProgramData\Quest\Data\Admin\365 

and run the script again it installs office. Any Idea where I'm going wrong? 

Below are the logs and a screenshot of the tasks list https://imgur.com/hDF5uWP

2 Comments   [ + ] Show comments

Comments

  • Log for Copy of Office 365 ProPlus for Windows (PAC ONLY) on JGWin10vm

    Started:


    10/02/2019 10:06:21

    Finished:


    10/02/2019 10:12:49

    Elapsed Time:


    388 seconds

    Status:


    4

    Output Log

    Running as SYSTEM

    File does not exist: C:\ProgramData\Quest\Data\Admin\365\32\Setup.exe

    Installed: (P)-Office365-20420

    C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\1905>If exist "C:\ProgramData\Quest\Data\Admin\365" (rmdir "C:\ProgramData\Quest\Data\Admin\365" /S /Q )

    C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\1905>mkdir C:\ProgramData\Quest\Data\Admin\365

    C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\1905>exit /b 0

    Launched Process: kace7733.bat

    File does not exist: C:\ProgramData\Quest\Data\Admin\365\32\Setup.exe

    Installed: (P)-Office365-20420

    C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\1905>If exist "C:\ProgramData\Quest\Data\Admin\365" (rmdir "C:\ProgramData\Quest\Data\Admin\365" /S /Q )

    C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\1905>mkdir C:\ProgramData\Quest\Data\Admin\365

    C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\1905>exit /b 0

    Launched Process: kace7733.bat

    Status Log

    No dependency detected - Downloading and staging files

    No dependency detected - Downloading and staging files

    Activity Log

    verify - file_exists

    Checking if file exists: C:\ProgramData\Quest\Data\Admin\365\32\Setup.exe

    verify - log_message

    verify - create_message_window

    Creating message window: Aerocare Office 365 Installation Please wait while we download the application files. This will take some time. 120

    verify - install

    verify - launch_program

    Launching program: 'C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\1905\kace7733.bat' '' wait='true'

    verify - file_unzip

    Unzipping file: C:\ProgramData\Quest\KACE\downloads\217906\Office365.zip C:\ProgramData\Quest\Data\Admin\365

    verify - file_exists

    Checking if file exists: C:\ProgramData\Quest\Data\Admin\365\32\Setup.exe

    verify - log_message

    verify - create_message_window

    Creating message window: Aerocare Office 365 Installation Please wait while we download the application files. This will take some time. 120

    verify - install

    verify - launch_program

    Launching program: 'C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\1905\kace7733.bat' '' wait='true'

    verify - file_unzip

    Unzipping file: C:\ProgramData\Quest\KACE\downloads\217906\Office365.zip C:\ProgramData\Quest\Data\Admin\365

    Debug Log

    Running kbot: runkbot 1905 1570035926

    KBotScript::LogScriptInfo - Start

    id=1905 name=Copy of Office 365 ProPlus for Windows (PAC ONLY) version=1570035925 type=policy

    execute disconnected=false logged_off=false

    execute events

    KBotScript::LogScriptInfo - Finish

    KBotScript::LogScriptInfo - Start

    id=1905 name=Copy of Office 365 ProPlus for Windows (PAC ONLY) version=1570035925 type=policy

    execute disconnected=false logged_off=false

    execute events

    KBotScript::LogScriptInfo - Finish

    KBotScriptManager::CleanupDependencies - clean up dependencies in kbot directory C:\ProgramData\Quest\KACE\kbots_cache\\packages\kbots\1905\

    CleanupDependencies: file kace5053.bat is part of the dependency list, keep the file

    CleanupDependencies: file kace7733.bat is part of the dependency list, keep the file

    runkbot ----- launching [path='C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\1905' program='kace7733.bat' parms='' wait='true'] -----

    runkbot ----- completed [exitCode=0] -----

    runkbot ----- launching [path='C:\ProgramData\Quest\KACE\kbots_cache\packages\kbots\1905' program='kace7733.bat' parms='' wait='true'] -----

    runkbot ----- completed [exitCode=0] -----
  • Try compressing the file with 7zip, do not use any compression methods, just the default one.

    Go to C:\ProgramData\Quest\KACE\kbots_cache\\packages\kbots\1905\

    Get the MD5 of the Zip file, and compare the result against your original ZIP's MD5
    • That Worked! Thanks We had used the native OS compression tool. KACEd again

All Answers

1

Try compressing the file with 7zip, do not use any compression methods, just the default one.

Go to C:\ProgramData\Quest\KACE\kbots_cache\\packages\kbots\1905\

Get the MD5 of the Zip file, and compare the result against your original ZIP's MD5

Answered 10/03/2019 by: Channeler
Red Belt

 
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