PowerShell on macOS
Install / Upgrade PowerShell 7
Download PowerShell-7.5.1-osx-x64.pkg from Egnyte (IT Applications > Mac > PowerShell)
Install the Active Directory module
# Check if the AD RSAT feature is available
Get-WindowsCapability -Name RSAT.ActiveDirectory.DS-LDS.Tools* -Online
# Install the feature
Add-WindowsCapability -Name RSAT.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0 -Online
Import the module
Import-Module ActiveDirectory
# Test a cmdlet
Get-ADDomain
Get-WindowsCapability -Name RSAT.ActiveDirectory.DS-LDS.Tools* -Online
Install-Module -Name ExchangeOnlineManagement -Scope CurrentUser -Force
Import-Module ExchangeOnlineManagement
Install-Module Microsoft.Graph -Scope CurrentUser -Force
Import-Module Microsoft.Graph
Connect-MgGraph -Scopes "Directory.Read.All"
Connect-ExchangeOnline
Mailbox Permissions
Add-MailboxFolderPermission -Identity "SourceUser@wearebw.com:\Calendar" -User "TargetUser@wearebw.com" -AccessRights Reviewer