Skip to content

Instantly share code, notes, and snippets.

@macjustice
Created August 30, 2016 19:38
Show Gist options
  • Save macjustice/549886b3ecdebd38e072dde221a6d416 to your computer and use it in GitHub Desktop.
Save macjustice/549886b3ecdebd38e072dde221a6d416 to your computer and use it in GitHub Desktop.
munkitest () { # Optional first arg is a ClientID to check
if [[ $# == 0 ]]; then
sudo managedsoftwareupdate --checkonly --munkipkgsonly -vv
else
echo "Checking updates for $1"
sudo managedsoftwareupdate --checkonly --munkipkgsonly -vv --id=$1
fi
}
@macjustice
Copy link
Author

Put this in your .bashrc/.zshrc and smoke it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment