- Get-Mailbox -Identity * | ft name, alias #gives column name and an alias for all the list of emails available
- Get-Mailbox | sort Alias |ft Name, alias #sorts record by an alias
- Get-Mailbox -Identity “rajan.maharjan” | fl #give all columns for individual identity- rajan.maharjan
- get-MailboxMessageConfiguration -Identity rajan.maharjan | fl #to get email configuration detail
- get-MailboxMessageConfiguration -Identity rajan.maharjan | fl signatureHTML #to get email signature for particular user/email
- $newString = $oldString -replace “OLD_TEXT_GOES_HERE”, “NEW_TEXT_TO_REPLACE_WITH” #to replace text
- #to add HTML format email signature in office 365
- $sig = Get-Mailbox -Identity “rajan.maharjan”
- Set-MailboxMessageConfiguration -Identity $sig.Alias -DefaultFontName ‘Arial’ -AutoAddSignature $true -AutoAddSignatureOnReply $true -SignatureHtml “DYNAMIC_HTML_CODE_WITH_VARIABLE_VALUE_FROM_$sig”
- Write-host $sig.Alias ‘Signature Added’