Hi jamf nation!
I made a rookie error where by i accidentally deployed a duplicate WiFi by scoping it to All Computers and All Users, i cannot remove this using Exclusion in Scope as it will remove the WiFi at the same time as it uses the Same SSID and password.
Is there a way, script level that i can remove this ?
i tried the following but no luck
#!/bin/bash
## Get UUID of requested MDM Profile
MDMUUID=`profiles -Lv | grep "name: $4" -4 | awk -F": " '/attribute: profileIdentifier/{print $NF}'`
## Remove said profile, identified by UUID
if [[ $MDMUUID ]]; then
profiles -R -p $MDMUUID -u $3
else
echo "No Profile Found"
fi
sleep 5
Thanks