Table of Contents
First step would be launch Powershell as Administrator.
Second would be to open a new PS Session on powershell to Exchange Online/Office 365 using below commands.
$GetCred = Get-Credential
$PSSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $GetCred -Authentication Basic -AllowRedirection
Import-PSSession $PSSession
Now the last step is to configure the permissions for the user2 permissions on user1 calendar using below Powershell:
Add-MailboxFolderPermission -Identity user1@domain.com:\calendar -user user2@domain.com -AccessRights Editor
To check existing permissions, use below command
Get-MailboxFolderPermission -Identity user1@domain.com:\calendar
FolderName User AccessRights
———- —- ————
Calendar Default {AvailabilityOnly}
Calendar Anonymous {None}
Calendar user2 {AvailabilityOnly}
Calendar user4 {LimitedDetails}
If Existing permission already exists then use below command to change the permissions as needed.
Set-MailboxFolderPermission -Identity user1@domain.com:\calendar -user user2@domain.com -AccessRights Editor
To Check permissions again:
Get-MailboxFolderPermission -Identity user1@domain.com:\calendar
FolderName User AccessRights
———- —- ————
Calendar Default {AvailabilityOnly}
Calendar Anonymous {None}
Calendar user2 {Reviewer}
Calendar user4 {LimitedDetails}
How to install of FireFox browser using PowerShell Sometimes you would like to install Firefox…
Quick way to install chrome on windows with Powershell? Launch the Powershell and run below…
How to Fix PowerShell Script Not Digitally Signed Error? When a script with a .ps1…
Powershell Cheat Sheet for beginners PowerShell has become something of an ace in the hole…
Today we discuss one of a few questions a lot of sysadmins and IT Admins…
Backing Up an SQL Database with PowerShell Before making any changes in the production environment,…
This website uses cookies.