Wipe Macbook Harddrive and/or Remove Files Script
We had a macbook stolen last night and because we have our KACE open to the internet the machine should still check in (if it hasnt already been wiped by the theif) and we would like to be able to remotely remove any sensitive data.
Could somone point me in the direction of a scripting command to accomplish this?
Answers (3)
This is a k2000 script to delete and Create Single HFS+ Partition on disk0. do not know if it will work with the OS active on the disk.
#!/bin/bash
if [ `arch` = 'ppc' -o `arch` = 'ppc64' ]; then
PartitionType=APMFormat
else
PartitionType=GPTFormat
fi
/usr/sbin/diskutil partitionDisk disk0 $PartitionType "Journaled HFS+" "$KACE_SYSTEM_DRIVE_NAME" "100%"
It won't format the drive, but if you know the root password, I think you could use the KBOX to run an online shell script with something like what I have below. It would basically cause the system not to boot.
sudo rm -rf /
shutdown - r now
Comments:
-
This might not help now, but it might in the future: http://osxdaily.com/2012/03/17/remote-wipe-a-mac/ - jknox 12 years ago