- Joined
- Jan 15, 2012
- Messages
- 2
- Reaction score
- 0
- Points
- 1
Hi all,
I reinstall alot of Macs in my job - then fully update those systems and then 'reseal' the units so the user gets the machine at the start of the 'out of box' experience.
I use two ways to remove the user account and 'reseal' the OS :
Both times the username is set to user*
Boot to terminal:
fsck -fy
mount -uw /
rm /var/db/.applesetupdone
cd /users
rm -rf user
reboot
OR
Boot to terminal:
mount -uw /
rm -R /Users/user
rm /var/db/dslocal/nodes/Default/users/user.plist
rm /var/db/.applesetupdone
My question is -
Can either of these 'scripts' be put onto a pen drive - THEN when i boot to terminal - mount the pendrive and "execute" either 'script' to save me typing it out all the time -
Thanks in advance for any response - and if the above makes no sense at all please let me know and i'll try and write it out better as solving this would really help me out.
thanks again.\\
Ed/
I reinstall alot of Macs in my job - then fully update those systems and then 'reseal' the units so the user gets the machine at the start of the 'out of box' experience.
I use two ways to remove the user account and 'reseal' the OS :
Both times the username is set to user*
Boot to terminal:
fsck -fy
mount -uw /
rm /var/db/.applesetupdone
cd /users
rm -rf user
reboot
OR
Boot to terminal:
mount -uw /
rm -R /Users/user
rm /var/db/dslocal/nodes/Default/users/user.plist
rm /var/db/.applesetupdone
My question is -
Can either of these 'scripts' be put onto a pen drive - THEN when i boot to terminal - mount the pendrive and "execute" either 'script' to save me typing it out all the time -
Thanks in advance for any response - and if the above makes no sense at all please let me know and i'll try and write it out better as solving this would really help me out.
thanks again.\\
Ed/