Archive
Archive for August, 2019
[EX2010][PS] Recover mail items from Exchange
August 15, 2019
No comments
How do I recover an item after its been deleted? So long as the recoverable items purge duration has not exceeded, you can run the below command to pull e-mails.
For more specific searchquery, reference Advanced Query Syntax (AQS).
1 2 3 4 5 6 7 8 |
#type search example Search-mailbox -identity <guid> -SearchQuery 'kind:<type>' -SearchDumpsterOnly -TargetMailbox "<destination mailbox>" -TargetFolder "<destination folder>" -loglevel full $multiple criteria search example: Search-mailbox -identity <guid> -SearchQuery 'kind:<type> AND subject "<subject>"' -SearchDumpsterOnly -TargetMailbox "<destination mailbox>" -TargetFolder "<destination folder>" -loglevel full |
- Meetings
- Tasks
- Notes
- Docs
- Journals
- Contacts
- IM
Categories: Exchange, Powershell
[PS] Enable TLS 1.2 as default in Powershell
August 5, 2019
No comments
Check Supported protocol
[Net.ServicePointManager]::SecurityProtocol
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Change Net Frame to use TLS 1.2
Set-ItemProperty -Path ‘HKLM:\SOFTWARE\Wow6432Node\Microsoft\.NetFramework\v4.0.30319’ -Name ‘SchUseStrongCrypto’ -Value ‘1’ -Type DWord
Set-ItemProperty -Path ‘HKLM:\SOFTWARE\Microsoft\.NetFramework\v4.0.30319’ -Name ‘SchUseStrongCrypto’ -Value ‘1’ -Type DWord
Categories: Powershell