defaults write com.apple.loginwindow TALLogoutSavesState -bool FALSE
defaults write com.apple.loginwindow SHOWOTHERUSERS_MANAGED -bool FALSE
defaults write com.apple.systempreferences AttentionPrefBundleIDs 0
sudo defaults write /Library/Preferences/com.apple.AppStore.plist DisableSoftwareUpdateNotifications -bool TRUE
# Disbale SIP (command + r)
csrutil disable
# Mount '/' as write
sudo mount -uw /
# Do something
sudo cd "/Volumes/$(ls -1 /Volumes|head -n1)"
sudo rm -rf /System/Applications/TV.app
sudo rm -rf /System/Applications/News.app
sudo rm -rf /System/Applications/Home.app
sudo rm -rf /System/Applications/Books.app
sudo rm -rf /System/Applications/Chess.app
sudo rm -rf /System/Applications/Podcasts.app
sudo rm -rf /System/Applications/Stocks.app
sudo rm -rf /System/Applications/Music.app
# Enable SIP
csrutil enable
- Create a user as Administrator, like "temp".
- Login "temp".
- Change user name and folder.
- Disable SIP.
- Use
sudo mv <OldFolder> <NewFolder>
to rename folder. - Enable SIP.
- Login.
- Delete user "temp".