Set-ExecutionPolicy RemoteSigned
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName
Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/
-Credential $LiveCred -Authentication Basic -AllowRedirection
Import-PSSession $Session------------------------------------------
Once you have a session then you can use commands to assign permissions such as:
Add-MailboxPermission "Telephone Messages" -User
IanSmit@mycompany.com -AccessRights FullAccess
No comments:
Post a Comment