Assign Calendar Perms – Powershell

16 Mar

PS C:\Windows\system32> $Cred = Get-Credential

cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
PS C:\Windows\system32> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic -AllowRedirection
WARNING: Your connection has been redirected to the following URI:
https://ps.outlook.com/PowerShell-LiveID?PSVersion=5.1.17134.858
PS C:\Windows\system32> Import-PSSession $Session -DisableNameChecking

PS C:\Windows\system32> add-mailboxfolderpermission -identity userwhoyouwanttoview@twhf.org.uk:\calendar -user userwhoyouwantohaveaccessto -accessrights editor

FolderName User AccessRights SharingPermissionFlags
———- —- ———— ———————-
Calendar User {Editor}

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: