hjuutilainen / adminscripts Goto Github PK
View Code? Open in Web Editor NEWMiscellaneous scripts for mac admins
License: MIT License
Miscellaneous scripts for mac admins
License: MIT License
Hello,
Can you please provide hardware check compatibility scripts for each Big Sur and Monterey. Would like to use them as check install scripts for munki. Thanks a lot and Happy New Year
In investigating why the list generated by download-logicprox-content.py list
contained 850 items but download-logicprox-content.py download
downloaded 846 items, I noticed that a number of items were actually duplicates. Using TextWrangler and a captured version of the list, I eliminated the duplicate lines, which reduced it to 357 packages. Some packages were downloaded as many as 9 times. The duplicates all appear to come from the Alchemy Sound Libraries.
The correct path is now /Applications/Google Chrome.app/Contents/Frameworks/Google Chrome Framework.framework/Frameworks/KeystoneRegistration.framework.
I don't know python as well, but I was able to figure out that I needed to change the keystone_registration_framework_path() subroutine to the following:
def keystone_registration_framework_path():
"""Returns KeystoneRegistration.framework path"""
keystone_registration = os.path.join(chrome_path, 'Contents/Frameworks/Google Chrome Framework.framework/Frameworks/KeystoneRegistration.framework')
return keystone_registration
I don't know enough, yet, to figure out how to make it work for both versions earlier than 75 and version 75 or later.
My organization would like to use and modify some of your scripts, but the absence of a license prevents us from doing so. Could you add one?
Thank you!
Found out a way to remove all deprecated items at once:
"$REPOUTIL" --remove-products="${deprecatedProductIDs[@]}" "$1"
Removes all deprecated items from the selected branch and rebuilds catalogs only once.
The chrome-enable-autoupdates.py
script has started failing with version 80. It seems that the install.py
file is no longer provided. Not sure if that's something that can be addressed.
install_script = os.path.join(keystone_registration_framework_path(), 'Resources/install.py')
When running the chrome-disable-autoupdates.py script on a Mac with the Google keystone agent installed and removeKeystone
set to True
, I get the following:
$ sudo python chrome-disable-autoupdates.py
Error: KeystoneRegistration.framework not found
Error: Keystone nuke failed
This is with Chrome 55 installed and configured for "updates for all users."
Here's the location/version of the GoogleSoftwareUpdate bundle:
$ defaults read /Library/Google/GoogleSoftwareUpdate/GoogleSoftwareUpdate.bundle/Contents/Info CFBundleVersion
1.2.6.1370
Any advice?
I have set update_munki_conditional_items
to True
. I noticed that the file /Library/Managed Installs/ConditionalItems.plist
was not created after running managedsoftwareupdate
. The same does happen (or not) when running the GUI.
I ran the script manually and got this error.
Traceback (most recent call last):
File "/usr/local/munki/conditions/check-10.13-highsierra-compatibility.py", line 335, in <module>
sys.exit(main())
File "/usr/local/munki/conditions/check-10.13-highsierra-compatibility.py", line 326, in main
append_conditional_items(high_sierra_supported_dict)
File "/usr/local/munki/conditions/check-10.13-highsierra-compatibility.py", line 302, in append_conditional_items
plistlib.writePlist(output_dict, current_conditional_items_path)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/plistlib.py", line 90, in writePlist
pathOrFile = open(pathOrFile, "w")
IOError: [Errno 13] Permission denied: '/Library/Managed Installs/ConditionalItems.plist'
Running the same with sudo
creates the file. Whats wrong?
Permissions look correct:
-rwxr-xr-x 1 root wheel 10389 27 Jul 15:37 check-10.13-highsierra-compatibility.py
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.