Quantcast
Channel: krypted – krypted
Viewing all articles
Browse latest Browse all 1241

Extension Attribute to Grab iTunes Hashes for VPP on macOS

$
0
0

Here’s a new extension attribute at https://github.com/krypted/ituneshash/blob/master/ituneshash.sh for grabbing the hash ID used for iTunes Store accounts, useful with VPP:

#!/bin/sh
#
#
#
#Jamf Pro Extension Attribute to return the App Store Account Hash for iTunes
#Note that the return is null if one is not found
#
#
result=`/usr/libexec/mdmclient QueryAppInstallation | grep iTunesStoreAccountHash | sed '/.*\"\(.*\)\".*/ s//\1/g'`
echo "<result>$result</result>"

The output is something like:

<result>oBSmAAAa0nUAAACBHe5AaALlNBg=</result>

Which would bring the string into Jamf Pro

The post Extension Attribute to Grab iTunes Hashes for VPP on macOS appeared first on krypted.com.


Viewing all articles
Browse latest Browse all 1241