Advertisement
Guest User

Untitled

a guest
Oct 18th, 2018
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. $UserCredential = Get-Credential
  2.  
  3. $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
  4.  
  5. Import-PSSession $Session -DisableNameChecking
  6.  
  7. Add-MailboxFolderPermission -Identity <user1@domain.com>:\Calendar -User <user2@domain.com> -AccessRights Editor -SharingPermissionFlags Delegate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement