# MacBook Codes

**Run this in a terminal under the jamf (admin) user account to force a password change prompt after typing in the default for TPS…**

 /usr/bin/pwpolicy -u TPS -setpolicy "newPasswordRequired=1"

 **Run this in a terminal to install Rosetta 2 on M1 and M2 processor MacBooks to allow Intel apps and executables to run.**

 **softwareupdate –install-rosetta –agree-to-license** <span style="text-decoration: underline;">(those are double-dashes before “install” and “agree”) </span>

**sudo dscl . create /Users/jamf IsHidden 1** <span style="text-decoration: underline;">Hide the jamf user from local MacBook</span>

Uninstall uniFLOW

**sudo bash /etc/smartclient/uninstall-smartclient.bash**

**Rebuild Spotlight and Finder search index**

 sudo mdutil -E /