powershell

A collection of 4 posts

Sep 29, 2020

Apply mailbox retention policy in bulk.

Get-Mailbox -Filter { WindowsEmailAddress -like "*@≤domain-name≥" } | Set-Mailbox -RetentionPolicy "≤Policy-Name≥" This command retrieves all mailboxes that have the retention policy applied. Get-Mailbox -ResultSize unlimited | Where-Object {$_.RetentionPolicy -eq "≤Policy-Name≥"} | Format-Table

Sep 29, 2020

Powershell on MacOS

Powershell on MacOS

Install pre-requisites: xcode-select –install /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" brew install openssl Install Powershell Core: brew cask install powershell After the installation,

Sep 14, 2020

(Enable TLS 1.2)

Enables TLS 1.2 on Windows Server 2008 R2 and Windows 7These keys do not exist so they need to be created prior to setting values.md "HKLM:\SYSTEM\CurrentControlSet\Control\SecurityProviders\