Skip to content

Instantly share code, notes, and snippets.

View hfike's full-sized avatar

Harry Fike hfike

  • Maryland, United States
View GitHub Profile
@hfike
hfike / MSDefenderATP.download.recipe
Created August 30, 2019 14:59
MSDefenderATP recipe verbose outputs
autopkg run -vvv MSDefenderATP.download
Processing MSDefenderATP.download...
{'AUTOPKG_VERSION': u'1.1',
u'CHANNEL': u'Production',
u'LOCALE_ID': u'1033',
u'MUNKI_REPO': u'/Users/Shared/munki',
u'NAME': u'MSDefenderATP',
'PARENT_RECIPES': [u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/MSOfficeUpdates/MSDefenderATP.download.recipe',
u'/Users/admin/Library/AutoPkg/RecipeRepos/com.github.autopkg.recipes/MSOfficeUpdates/MSOfficeMacProduct.download.recipe'],
u'PRODUCT': u'DefenderATP',
#!/bin/bash
LOCALADMIN="username"
LOCALUSER="username2"
kickstart=/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart
echo "Configuring Remote Management"
if id -u $LOCALADMIN >/dev/null 2>&1; then
echo "Defined local admin account exists"
# Deactivate ARD agent, deny all access
@hfike
hfike / Reposado IIS MIME Types
Last active January 24, 2019 20:50
Reposado on IIS
Because I am hosting Apple specific files on an IIS server, and also due to the fact that there are other services running from this Site (munki, imagr), MIME Types are configured.
The web.config file from the root directory of the site:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<directoryBrowse enabled="false" />
<security>
<authentication>
@hfike
hfike / gist:b05420247582c51a365f0d6522e4ac2b
Created July 23, 2018 05:20
Batch file to back up a JSS DB on a Windows server to restore to a test JSS server.
@ECHO OFF
REM Script to backup JSS database for use in restoring to a test server
REM Based on Rich Trouton's Script below
REM https://gist.github.com/rtrouton/1da265982a7ef70c8589ac47901a3925#file-gistfile1-txt
REM Create a proper datetime stamp for output file name
REM Based on this https://stackoverflow.com/a/19799236
For /f "delims=" %%# in ('powershell get-date -format "{yyyyMMddHHmm}"') do @set _date=%%#
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>Camera Raw</string>
<key>CFBundleExecutable</key>
<string>Camera Raw</string>
<dict>
<key>CFBundleShortVersionString</key>
<string>9.0 (414)</string>
<key>CFBundleVersion</key>
<string>9.0.0f414</string>
<key>path</key>
<string>/Library/Application Support/Adobe/Plug-Ins/CC/File Formats/Camera Raw.plugin</string>
<key>type</key>
<string>bundle</string>
<key>version_comparison_key</key>
autopkg run MSOffice2011Updates.munki -v
Processing MSOffice2011Updates.munki...
MSOffice2011UpdateInfoProvider
MSOffice2011UpdateInfoProvider: Found URL http://download.microsoft.com/download/7/0/C/70C26EA7-EF6D-4521-9805-BE8403739785/Office2011-1449Update_EN-US.dmg
MSOffice2011UpdateInfoProvider: Got update: 'Office 2011 14.4.9 Update'
MSOffice2011UpdateInfoProvider: Update requires previous update version 14.1.0
MSOffice2011UpdateInfoProvider: Additional pkginfo: {'display_name': 'Office 2011 14.4.9 Update', 'description': '<html><p>This update fixes critical issues and also helps to improve security. It includes fixes for vulnerabilities that an attacker can use to overwrite the contents of your computer\'s memory with malicious code.</p>\n\n<p>For detailed information about this update, please visit the following Web site: <a href="http://go.microsoft.com/fwlink/?LinkID=529192" target="_blank">http://go.microsoft.com/fwlink/?LinkID=529192</a></p>\n\n<p>For additional assistance, or to obtain a downloadab
@hfike
hfike / gist:422945cedad4ed94328e
Created January 15, 2015 14:19
spss22 pkginfo
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>autoremove</key>
<true/>
<key>catalogs</key>
<array>
<string>production</string>
</array>
@hfike
hfike / .MASManifest
Last active August 29, 2015 14:01
new MAS madness
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<dict>
<key>adamID</key>
<string>682658836</string>
<key>bundleID</key>
<string>com.apple.garageband10</string>
<key>installerVersionID</key>