Mac Cheatsheets

Schedule a sleep/wake/shutdown/restart/poweron/wakeorpoweron M = Monday T = Tuesday W = Wednesday R = Thursday F = Friday S = Saturday U = Sunday sudo pmset shutdown “01/01/2017 05:00:00” sudo pmset repeat restart MTWRFSU 01:00:00 All schedules are stored in the following file /Library/Preferences/SystemConfiguration/com.apple.AutoWake.plist CPU Throttling # To turn off…

Continue reading

Exchange: Delete Emails with Search Terms

If you need to delete emails through the Exchange shell, you try to the following command.  This command will delete any email that is older than January 1st, 2015. search-mailbox -id user1 -SearchQuery “Received < 01/01/2015” -DeleteContent -Force If you want to make a copy of the deleted emails, you…

Continue reading

Exchange: Cleanup Recoverable Emails

If you want to clean up the recoverable email (or dumpster, recovery folder, recycle bin), you can run the following script to clean up that folder.  The following command will make a copy of the emails in dumpster to the target mailbox. Search-Mailbox -Identity test -SearchDumpsterOnly -TargetMailbox “Discovery Search Mailbox”…

Continue reading