ZENworks Agent Downloader

0 Likes

What is this



This small tool will give you the following advantages:



    • No need to unregister from the zone, before resealing the workstation

 

    • No more messing around with various ZAC commands

 

    • Your workstations will always have the latest version of the agent, that your infrastructure supports, when reinstalled




Requirements



The tool require that .Net is included with the base image, since the tool will not download the complete version of the agent, since that is a huge little bugger, due to the .Net runtime.



How it works



When launched, it will do the following:




    • Detect the version of the OS

 

    • Detect the architecture of the processor (32 or 64 bit)

 

    • Detect, if you want to download and install the client, or simply just download it

 

    • Detect, if you want to use the standalone or the network based version

 

    • Detect if you specified a specific download path, and if not, the current users temp directory (%TEMP%) will be used

 

    • Detect, if you want to reboot after installing the agent. (Default is not to reboot)

 

    • Contact a list of ZCM servers or satellites that you select, and download the ZCM agent.

 

    • The first server on the list that responds, it will use

 

    • The list can contain from 1 to 5 servers




Regardless of what agent is downloaded, it will be named PreAgentPkg_Agent.exe

 

Note that the user running this tool must be a local administrator on the workstation.



Parameters



Simply launch the tool without any parameters to see the list of parameters.



Have fun, and remember.......



This is a free tool, and as such, no support or claims can be made here.....Use at your own risk.



/Tommy, IT Quality – Denmark



See you on Novell Forums.

Labels:

Collateral
How To-Best Practice
Comment List
  • For 11.3 DotNet 4 is a requirement. And there is an Agent on the .../ZENworks-Setup which includes DotNet. Would it be possible to automatically select that one in case not DotNet 4 is found on the workstation?

    And I have problems with the /Reboot switch. It always reboots the PC directly after Download. Reason might be that the .EXE to watch has changed (at least on Win8.1)
  • Hey Tommy

    Is there a parameter for running https.

    /Stig
  • Hey Tommy

    We run secure server https, is there any way to set this in the parameters ?

    / Stig (DLG)
  • in reply to MigrationDeletedUser
    Below is my log. Testing on Windows 7 workstation:
    12/20/2011 9:55:19 AM *****************************************************
    12/20/2011 9:55:19 AM Starting to Debug on 12/20/2011 9:55:19 AM
    12/20/2011 9:55:19 AM Application : ITQ ZCM Agent Downloader and Installer
    12/20/2011 9:55:19 AM Version of App is : 1.0.0.2
    12/20/2011 9:55:19 AM *****************************************************

    12/20/2011 9:55:19 AM Searching for parameter named : DownPath
    12/20/2011 9:55:19 AM TargetDir is now :
    12/20/2011 9:55:19 AM Usr Temp Dir is : C:\Users\PPDUser\AppData\Local\Temp\
    12/20/2011 9:55:19 AM Targetfile is named : C:\Users\PPDUser\AppData\Local\Temp\\PreAgentPkg_Agent.exe
    12/20/2011 9:55:19 AM Starting GetParam and searching for parameter named : /ZCMServer1:
    12/20/2011 9:55:19 AM Found parameter named : ppdwsus.ppd.net
    12/20/2011 9:55:19 AM Ending GetParam
    12/20/2011 9:55:19 AM Download URL is : ppdwsus.ppd.net/.../PreAgentPkg_Agent.exe
    12/20/2011 9:55:23 AM Downloaded okay as : C:\Users\PPDUser\AppData\Local\Temp\\PreAgentPkg_Agent.exe
    12/20/2011 9:55:23 AM Starting to check if install is req, or download only?
    12/20/2011 9:55:23 AM Starting to install the file named : C:\Users\PPDUser\AppData\Local\Temp\\PreAgentPkg_Agent.exe
    12/20/2011 9:55:23 AM Usr Temp Dir is : C:\Users\PPDUser\AppData\Local\Temp\
    12/20/2011 9:55:23 AM Now waiting for ZENPreAgent.exe to finish
    12/20/2011 9:55:23 AM Starting GetParam and searching for parameter named : /Reboot
    12/20/2011 9:55:23 AM Ending GetParam
    12/20/2011 9:55:23 AM All ending....Now terminating ITQ ZCM Agent Downloader and Installer
    12/20/2011 9:55:23 AM No Agent found to install.....Exiting

    -= RESOLVED =-
    This ended up being a UAC issue. Once UAC is disabled, the process works as expected. This was evident after having manually launched the PreAgentPkg_Agent.exe and being prompted with the UAC dialog.

    I used a script wrapper for launching ZAgntDwn.exe so that UAC didn't have to be disabled:

    start ZAgntDwn.exe /debug /ZCMServer1:ppdwsus.ppd.net
    appwait EXE=ZAgntDwn.exe CLOSE QUIET
    tail ZAgntDwn.exe.log -1 | find /c "No Agent found to install.....Exiting" >nul
    if errorlevel 1 goto :CLEANUP

    if EXIST ..\PreAgentPkg_Agent.exe START "" /wait ..\PreAgentPkg_Agent.exe

    (NOTE: appwait.exe is my own utility for waiting for a process to end, and tail.exe is an external utility)


  • in reply to MigrationDeletedUser
    Never seen that before.

    Please email me the log-file to tm@REMoVe_ThISorstrand.dk

    /Tommy
  • Nice work, thanks, but unfortunately this dosn't work for me.
    The download is fine but the installation doesn't start.

    Last line in Logfile: No Agent found to install.....Exiting
Related
Recommended