/build/static/layout/Breadcrumb_cap_w.png

KACE Product Support Question


K-Series Package Export Report

10/14/2011 3854 views

Once packages are exported and off-boarded from the your K1000 or K2000, it can be difficult identifying or finding a particular package unless you made sure to document the files. They can be even harder to find if the exported item was already removed from the K2000, or in a disaster recovery scenario where you only want to import packages that you need right away.

This script will gather identifying information from all of the exported K1000 and K2000 packages in a specified folder and deliver the information in HTML format.
Please bear in mind that it will not work if you have only .pkg files from your K2000, as it reads the data from the .xml files that are exported with those .pkg files.
With K1000 it will extract the .XML file from the .kpkg and then keep it stored for faster reading the next time the report is run.

Only tested with version 3.3 and higher .pkg (K2000) files and 5.2 and higher .kpkg (K1000) files.

You can download the script here.

Feedback is very welcome, please let me know what you think or if it helps you.


Version History
----------------

v.0.3.3
-Fixed a bug that kept the script from running unless you had .kpkg files in your target directory

v.0.3.2
-Added gui progress bar while waiting for kpkgs to extract

v.0.3.1
-Added code from Corey Serrins that would extract XML information from a K1000 .kpkg and allow us to report from it
-Fixed issue with x64 systems not closing GUI properly when script was finished
-Changed behavior so that the final report opens in the default web browser instead of opening in Internet Explorer

v.0.3.0
-Added the ability to check for K1000 package xmls and display them in the report.
-Added check to ensure that there were K1 or K2 package .xmls in a directory before continuing with the report

v.0.2.5
-First public release
-Added check to skip .XML files not generated from the K2000
-Kept the GUI up with previous values if there was an issue with the package directory specified rather than exiting.

v.0.2.4
-Added checks to make sure that the target package directory existed and contained .XML files
-Added the ability to create the destination directory for the report if it did not already exist

v.0.2.3
-Added the ability to sort the table based on File Name, Title, or Type
-Corrected an issue where Scripted Install files were showing as Postinstall Tasks
-Added a graphical window to run through the process
-Added a message if you tried to start the report without specifying both the target package directory and report destination

v.0.2.2
-Generated a stylized html table with the package results
-Listed the date generated and the source package directory in the report

v.0.2.1
-Generated a plain .html table instead of a .CSV

v.0.1.2
-Added the ability to browse for the directory that the packages were contained in
-Added the ability to save the .CSV report with a custom name and location

v.0.1.1
-Added in a .CSV header

v.0.1.0
-initial release
-Generated a .CSV report

Answer Summary:
You can download the script here: https://downloads.kace.com/support/downloads/k2000/scripts/k-series_pkg_report.zip
1 Comment   [ + ] Show comment

Comments

  • Feature request: Option to rename existing files to the title of the exported object.
    • I'll have to add that in, good request!

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

All Answers

This content is currently hidden from public view.
Reason: Hidden by Admin For more information, visit our FAQ's.
This content is currently hidden from public view.
Reason: Hidden by Admin For more information, visit our FAQ's.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
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