$FixAutoMapping = Get-MailboxPermission -Identity discovery | where {$_.AccessRights -eq "FullAccess" -and $_.IsInherited -eq $false}
$FixAutoMapping | Remove-MailboxPermission
$FixAutoMapping | ForEach {Add-MailboxPermission -Identity $_.Identity -User $_.User -AccessRights:FullAccess -AutoMapping $false}
$today = (get-date).tostring("MM-dd-yyyy")
$outfile = 'C:\logs\FileName_' + $today + '.log'
When I reload my workstation I always forget the name of this app. Posting here so I can find it next time. LOL
http://calibre-ebook.com/
Use for Mobi and ePub files..
From script
$name=Read-Host "Enter login name of user to hide"
Set-Mailbox -Identity domain\$name -HiddenFromAddressListsEnabled $true
or one time from shell
$name=Read-Host "Enter login name of user to hide"
Set-Mailbox -Identity domain\first_lambert-HiddenFromAddressListsEnabled $true
Deletes all contents (emails) from users mailbox but does not delete the account.
Get-Mailbox -Identity "first_last"| Search-Mailbox -DeleteContent -Force
Room Mailbox Auto-attendant
Set-CalendarProcessing "My Room" -AutomateProcessing AutoAccept
Add Room Mailbox View permissions for everyone.
Set-MailboxFolderPermission "my_room:\Calendar" -User Default -AccessRights Reviewer
Add Room Mailbox Delegate
Add-MailboxPermission -Identity "My Room" -User first_last -AccessRights FullAccess
Export Mailbox cmdlet example
New-MailboxExportRequest -Mailbox first_last -FilePath d:\first_last.pst
Import Mailbox cmdlet example
New-MailboxImportRequest -Mailbox first_last -FilePath d:\first_last.pst -TargetRootFolder "RecoveredFiles"