Commit Graph

602 Commits

Author SHA1 Message Date
Zack T
0875364af3 Added additional table notes
Added notes for the following tables:
  * computers
  * computers_denormalized
  * mobile_devices_denormalized
  * mobile_device_management_commands

Reorganized tables in alphabetical order.
2023-02-14 18:10:02 -07:00
Zack T
c447a949cf New Queries for Unused Objects 2023-01-30 22:17:17 -07:00
Zack T
58eed20f85 Minor cleanup 2023-01-30 22:16:11 -07:00
Zack T
8908556126 Improving Unused Groups Queries 2023-01-30 22:12:00 -07:00
Zack T
8e942a95c8 Updating notes 2023-01-30 13:59:16 -07:00
Zack T
7aa952712b v1.1.0 = Improvements when multiple Xcode app bundles are present
+ Improved logic when multiple Xcode app bundles are present
  * "Acts on" the $latest version found
+ Switched from using `shopt -s nocasemath` to using REGEX in conditionals for case insensitive matching
+ Add some verbosity
2022-12-20 15:17:19 -07:00
Zack T
cbed9c6f78 v1.0.1 = Minor bug fixes
* Remove existing matching major version before rename
* Set default LaunchAgent label and location if one wasn't provided
2022-12-16 22:27:49 -07:00
Zack T
7f8dd9f9be v2.1.0 = Major Bug Fixes
* Fixed the script so that it _actually_ works now...
  * Been meaning to do this for ages, just have had higher priority items to deal with
* This script is actually used on my AutoPkg Recipe `com.github.mlbz521.pkg.MicrosoftOfficeResetOptions`
2022-12-10 02:41:17 -07:00
Zack T
5d0c2364b7 v2.2.1 = Bug Fix
* Fixed a bug due to a comparison operation that caused an error when the latest OS supported for a given model was a macOS `10.x` version.
* This bug did not affect the results of the script though.
* Simply reversed the conditional logic to resolve this issue
* Thanks to @allanp81 on the MacAdmins Slack for reporting this
2022-10-28 10:38:23 -07:00
Zack T
8e92548148 v1.8.0 = Updated to support macOS 13
Updated to support macOS 13, but consolidated the RegEx string.
2022-10-27 11:05:05 -07:00
Zack T
b505b005b8 Adding new queries 2022-08-31 23:23:32 -07:00
Zack T
84d24376fd Updated and cleaned up queries 2022-08-31 22:58:05 -07:00
Zack T
269e569d8b v1.2.0 = Additions and Improvements to existing logic
+ Updated Icon maintenance section to make it easier to read
+ Improved overall icon checking logic
+ Deleting icons from VPPs that have been deleted
+ Added logic to delete icons specified by id
+ Hard deleting specific pending MDM Commands records
2022-08-31 13:28:11 -07:00
Zack T
e6f1dee672 v1.1.0 = Fixes, updates to Icon maint, maint for new tables
+ Bug Fixes
+ Updated icon maintenance to clean up all unused icons that match a specific naming pattern
+ Added additional cleanup for the following tables:
  + computer_user_pushtokens
  + mdm_command_source
  + mdm_command_group
  + mobile_device_management_commands
2022-08-31 12:47:37 -07:00
Zack T
07f074c9f6 v1.1.0 = Improved tracking/reporting installed updates
+ Updated to support changes in v1.7.0 of `Get-LastOSUpdateInstalled.py`.
* Changed how installed updates are tracked and reported.  This prevents devices from submitting inventory multiple times in the same day if it reboots multiple times.
* Added support for a local EA History which will locally log each value that is collected on inventory.
2022-06-06 16:26:24 -07:00
Zack T
1c5674e537 v1.7.0 = Improved tracking/reporting installed updates
* Changed how installed updates are tracked and reported.  This prevents devices from submitting inventory multiple times in the same day if it reboots multiple times.
+ Made and fixed a few other logic issues
2022-06-06 16:23:31 -07:00
Zack T
5afb44d6fb v2.2.0 = Preliminary support for macOS 13 Ventura
*Added preliminary support for macOS 13 Ventura.  Since final details (full system requirements) have not yet been released, I have simply based those on Monterey support for now.
  * Ventura support will be reported as `Ventura*` until full specs can be specified within the script.
  * (Much quicker to the punch this year)
* Improved a regex check (i.e. checking for "spaces" in Bash regex)
* Fixed a condition's operator error
  * Bash built-in cannot compare float based integers via mathematical operators
2022-06-06 15:37:21 -07:00
Zack T
1e79971f5a v2.12.0 = Overhauled SysExt logic, Removed unsupported sensor logic, & more
+ Massive update to the check System Extension logic
  + Making a single call to get the contents of `/Library/SystemExtensions/db.plist` instead of multiple
  + No longer using `systemextensionsctl list` as this is not reliable -- it's possible that it doesn't return results (ever)
  + Improved state checking, including version validation logic
  + Improved the logic to determine if the SysExt is staged or not
+ Fixed logic issue in the OS Version Support conditional
+ Updated logic related to working with `falconctl stats`
+ Moved locale checking logic to a more appropriate location
+ Reporting Invalid Customer ID _only_ if a CID value can be determined
+ Added function for working with PlistBuddy
  + Updated any existing PlistBuddy calls to work with this function
+ Updated comments in most functions
- Removed all support for v5 Sensors
- Removed conditional logic for unsupported v6 Sensors
- Removed checks for SIP status
2022-05-14 00:08:54 -07:00
Zack T
d428977117 v1.4.0 = Adjusted logic to support more versions
+ Instead of checking for versions, checking if uninstall scripts exist any using them if so
+ Fixed a logic issue or two
2022-05-13 23:01:31 -07:00
Zack T
369fbff730 v1.3.0 = Add logic to determine if the Issue code was valid
+ Improved the curl command for the download of the Support Application
  + Will now be able to determine if the Issue Code Name is valid or not
2022-05-13 19:05:52 -07:00
Zack T
75d80ecdfd v1.6.0 = Pass multiple args to & removed mutual exclusions from switches
+ Added the ability to pass multiple files and/or directories to be collected
+ Removed mutual exclusion from the defaults, file, and directory switch
+ Added logic to parse switches/values passed from Jamf Pro when using multiple values in each passed Script Parameter
+ Moved archiving logic to a function/context manager
+ Using built-in plistlib to read plists now
+ Standardizing functions
2022-05-13 19:01:06 -07:00
Zack T
b148edbf0c v1.6.0 = Monterey Support and reporting improvement
+ Added support for Monterey (Monterey Beta was picking up, but not release)
+ Fixed issue in logic where I had previously attempted to remove duplicate version information in the displayName and displayVersion attributes
2022-05-02 21:14:11 -07:00
Zack T
3ef6b8c12a v1.0.0 = Initial Version
Initial Version
2022-04-06 18:35:27 -07:00
Zack T
ad38bb307f v1.0.0 = Initial Version
Initial Version
2022-04-06 15:40:58 -07:00
Zack T
9073cfa747 v1.1.0 = Fixed Python3 conversion issues
+ Fixed Python3 conversion issues...
+ Code improvements, etc.
2022-04-05 14:13:30 -07:00
Zack T
3cc50ad9da v2.11.0 = Add verification if SysExt is Staged
+ Adding check to verify if the System Extension is staged
2022-03-25 10:50:34 -07:00
Zack T
f2b3f20404 v2.10.0 = Support enable/disable the "log locally" functionality
Made it easier to disable and _use_ the "log locally" functionality I added a while back
2022-03-25 10:37:54 -07:00
Zack T
82696b4c1b v2.9.0 = Improved SysExt & Network Filter Logic Checks
+ Improved the System Extension check to remove the hardcoded index and instead, loop through all dictionaries in the array
+  Switched to an unofficially supported, but first party generated Network Filter state check that will be more reliable
  - Allows the removal of the external Python3 call
  + Moved to a function as well
2022-03-23 18:13:51 -07:00
Zack T
c08d32f4f9 v2.8.1 = Bug Fix
+ Mistakenly copied the check_system_extension function twice
2022-03-23 18:01:33 -07:00
Zack T
2d41be2c6f v2.8.0 = Added new KEXT check, Improved SysExt/KEXT/PPPC Logic
+ Moved SysExt, KEXT, and PPPC check logic into functions
+ Running SysExt, KEXT, and PPPC check logic even if sensor isn't loaded, to get additional info
+ Tweaked several of the "return values" verbiage
* SysExt logic:
  + Getting additional details before bailing out
* KEXT logic:
  + Added logic to check if unapproved KEXTs can be loaded _at all_
2022-03-22 00:24:01 -07:00
Zack T
2982453492 v1.5.1 = Moved an echo
Moved an echo statement so that it is always executed.
2022-03-21 22:42:44 -07:00
Zack T
3a82eb1660 v1.2.0 = Bug fix
Fixed logic issue causing all returns to be negative
2022-03-21 22:40:55 -07:00
Zack T
75c5f09cb4 v1.3.1 = Bug Fix
Fixed:  Failed to convert one of the Python calls to Python3 in previous commit
2022-03-21 13:40:05 -07:00
Zack T
09a846bf63 v1.3.0 = Updates to console user & Python3 compatibility
+ Updated logic that determines the current console user to no longer use the old Python method
+ Python3 compatibility; allow setting of a custom Python binary path
+ Renamed script
2022-03-17 15:17:33 -07:00
Zack T
6ffa2823cf v1.3.0 = Python3 compatibility; allow setting of a custom Python binary path
+ Python3 compatibility; allow setting of a custom Python binary path
+ Renamed script
2022-03-17 15:07:46 -07:00
Zack T
ed48b3f293 v1.1.0 = Updates to console user, Python, & misc other logic
+ Updated logic that determines the current console user to no longer use the old Python method
+ Python3 compatibility; allow setting of a custom Python binary path
+ Renamed script
+ Miscellaneous code improvements
2022-03-17 15:04:39 -07:00
Zack T
7e8395dc14 v2.0.0 = Support for 2021 and other licensing changes
+ Updated to use new source script
+ Support for
  + 2021 VL
  + change in license priority logic in v16.50+
+ Renamed script
2022-03-17 14:53:59 -07:00
Zack T
5e199c2b79 v1.1.0 = Updated method to get console user
+ Updated logic that determines the current console user to no longer use the old Python method
+ Renamed script
2022-03-17 14:45:10 -07:00
Zack T
6be6665eb2 v2.1.0 = Additional functionality improvements
This version also includes contributions from @tantonw.
* \+ Added a check to see if the current running OS version is the same as "latest supported" based on model, if so, no reason to check further specifications
  * (Again, help script execute faster where possible)
2022-02-28 23:05:23 -07:00
Zack T
8e27016cf4 Merge pull request #14 from tantonw/tantonw-patch-2
Storage free space fix for Mac at loginwindow
2022-02-28 21:46:09 -08:00
Zack T
4f04510aec Merge pull request #13 from tantonw/tantonw-patch-1
M1 system_profiler "Upgradeable Memory" workaround
2022-02-28 21:45:15 -08:00
tantonw
5886c0a727 Storage free space fix for Mac at loginwindow
The NSURLVolumeAvailableCapacityForImportantUsageKey resource key returns 0 free space if no user is logged in to the Mac.  NSURLVolumeAvailableCapacityKey doesn't have this issue, so use it instead if necessary.
2022-02-25 16:57:13 -08:00
tantonw
4233b7a72d M1 system_profiler "Upgradeable Memory" workaround 2022-02-25 16:35:33 -08:00
Zack T
391d345b64 v2.0.0 = Major refactor, more strict technical checks, etc.
* Major refactor
* \+ Switched to using Regex to determine which models _are not_ compatible with each OS versions
  * This should make the logic much more reliable and easier to maintain going forward
  * \- This also allowed the removal of model specific check functions, although the MacPro logic will still be required due to additional configuration and hardware checks
* Separated the model and upgrading to/from os version validation checks
* \- Removed unnecessary runtime calculations; instead hard coding static values that will not change
* \+ Improved required storage check to validate against technical space minimals depending on current OS version
* Moved logic around to only execute if needed, instead of wasting cycles
* Overall, script executes two-to-three times faster
* Renamed script
2022-02-21 13:57:03 -07:00
Zack T
9bd180d8dd v2.0.0 = Major refactor, more strict technical checks, etc.
* Major refactor
* \+ Switched to using Regex to determine which models _are not_ compatible with each OS versions
  * This should make the logic much more reliable and easier to maintain going forward
  * \- This also allowed the removal of model specific check functions, although the MacPro logic will still be required due to additional configuration and hardware checks
* Separated the model and upgrading to/from os version validation checks
* \- Removed unnecessary runtime calculations; instead hard coding static values that will not change
* \+ Improved required storage check to validate against technical space minimals depending on current OS version
* Moved logic around to only execute if needed, instead of wasting cycles
* Overall, script executes two-to-three times faster
2022-02-21 13:52:28 -07:00
Zack T
e2a7701780 v1.12.2 = Corrected Monterey and Big Sur support on iMac Models
Revert change excluding 16,1 from Monterey....  Apple's numerous pages are vague, misleading, or incorrect.
https://support.apple.com/en-us/HT201634 - Shows that the iMac (Retina 5K, 27-inch, Mid 2015), Model Identifier: iMac15,1 still supports Monterey when it does not.
2022-02-18 23:53:43 -07:00
Zack T
55efd75f2c v1.12.1 = Corrected Monterey and Big Sur support on iMac Models
Corrected Monterey and Big Sur support on iMac Models
2022-02-18 21:52:40 -07:00
Zack T
9fab01b524 v2.0.0 = Revised into a postinstall script used in an AutoPkg Recipe
This script is now used in an AutoPkg recipe.
The recipe builds a pkg and uses this script as a postinstall script to provide a similar functionality as the previous revision.
This change will allow for quicker and easier support for updates to the Office Reset utility.
2022-02-18 21:22:01 -07:00
Zack T
98a937149e v2.5.0 = Logic improvements, minimum version feature & v28 support
+ Added success/fail check when running the `licenseactivator` utility
+ Added a "minimum support version" feature
+ Added support for v28 licenses
2022-02-18 17:55:38 -07:00
Zack T
e0be46a3a7 v2.4.0 = Updated version check logic to support v27 *and* newer
+ Updated version check logic to support v27 *and* newer (not just v27)
2022-02-18 17:43:31 -07:00