Hello Everyone!
Looking for a little guidance on removing all instances of a generic password keychain by either the service (svce) or label string. I can do it once at a time but I sometimes have machines that have 15+. Here is how I am able to one at a time:
By string - security delete-generic-password -s com.apple.network.eap.user.item.wlan.ssid.DEMO
By label - security delete-generic-password -l DEMO
And attempting to all at once using the awk command:
security find-generic-password -s "com.apple.network.eap.user.item.wlan.ssid.DEMO" | \ sudo awk ’/svce/{system(“security delete-generic-password -s “com.apple.network.eap.user.item.wlan.ssid.DEMO)}’
That last one has some bad syntax but cant figure it out =(
Looking for a little guidance on removing all instances of a generic password keychain by either the service (svce) or label string. I can do it once at a time but I sometimes have machines that have 15+. Here is how I am able to one at a time:
By string - security delete-generic-password -s com.apple.network.eap.user.item.wlan.ssid.DEMO
By label - security delete-generic-password -l DEMO
And attempting to all at once using the awk command:
security find-generic-password -s "com.apple.network.eap.user.item.wlan.ssid.DEMO" | \ sudo awk ’/svce/{system(“security delete-generic-password -s “com.apple.network.eap.user.item.wlan.ssid.DEMO)}’
That last one has some bad syntax but cant figure it out =(