Skip to content

Instantly share code, notes, and snippets.

View awildeone's full-sized avatar

Andrew Wilde awildeone

  • Vancouver, BC, Canada
View GitHub Profile
/usr/bin/curl --location "https://go.microsoft.com/fwlink/?linkid=2093438&clcid=0x409" -o "EdgeLatest.pkg"
sudo profiles renew -type enrollment
aws s3api list-objects --bucket BUCKETNAME --output json --query "[sum(Contents[].Size), length(Contents[])]"
%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
#This can be run through a remote terminal to rename a system
> scutil --set HostName SYSTEMNAME
> scutil --set LocalHostName SYSTEMNAME
> scutil --set ComputerName SYSTEMNAME
1. Push installer:
/usr/bin/curl -L1 https://mydownloadlink.com/download-files/mypackage.pkg > /tmp/Install\ mypackage.pkg
Step 2 Install:
installer -pkg /tmp/Install\ mypackage.pkg -target /
Step 3 Remove installer:
/bin/rm /tmp/Install\ mypackage.pkg
sudo jamf policy -id ####
:boredparrot::chillparrot::congaparrot::dealwithitparrot::explodyparrot::fastparrot::fiestaparrot::gothparrot::icecreamparrot::middleparrot::oldtimeyparrot::parrot::parrotcop::parrotdad::partyparrot::reversecongaparrot::rightparrot::shufflefurtherparrot::shuffleparrot::shufflepartyparrot::slowparrot:
Sudo jamf setcomputername -name thename
//run after setcomputername
sudo jamf recon
For v9.8 or later:
/usr/local/bin/jamf removeFramework
For v9.73 or earlier:
/usr/sbin/jamf removeFramework