Once packages are exported and off-boarded from the your KACE Systems Management Appliance (SMA/K1000) or Systems Deployment Appliance (SDA/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 SDA, 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 SMA and SDA 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 SDA, as it reads the data from the XML files that are exported with those PKG files. With SMA exports, it will extract the XML file from the KPKG and then keep it stored for faster reading the next time the report is run.
You can download the script here. *Note: you must be a member of the K2000 ITNinja Community to download this file.
Feedback is very welcome, please let me know what you think or if it helps you.
Version History
v.1.0.0
-Added default report name when browsing
-Added support for WIM and ASR PKG types
-Rebranded with new KACE logo and Quest colors
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
Comments