Updating my old blog post, Make OS X re-run the initial Setup Assistant, Mac OS X 10.9 Mavericks (and perhaps even earlier versions, back to 10.5) require a slightly different method, since the NetInfo Manager has now been done away with. Thanks to this comment on Mac OS X Hints for the updated information.
- Boot into single-user mode (hold
⌘-S
during startup) - Once the command-line prompt appears, type the following:
mount -uw /
rm -R /Library/Preferences/
rm -R /Users/
your username/
cd /var/db/dslocal/nodes/Default
ls
to list the files- Delete the file that is named after your user account, with a
.plist
extension. So, for user name "tempadmin", typerm tempadmin.plist
rm /private/var/db/.AppleSetupDone
reboot
- Mac OS X will restart and the setup assistant will launch automatically.
If you’re doing this to get the Mac ready for a new owner, just press ⌘-Q
once the opening animation finishes, and click Shut Down. The Setup Assistant will automatically run again the next time the Mac is started.