`PS C:\UcMadScientist\PowerShell-Functions> New-UcmEXHOConnection
VERBOSE: New-UcmEXHOConnection called with New-UcmEXHOConnection
INFO: Connecting to Exchange Online
New-PSSession : [outlook.office365.com] Connecting to remote server outlook.office365.com failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic.
At C:\UcMadScientist\PowerShell-Functions\public\New-UcmEXHOConnection.ps1:127 char:25
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : AccessDenied,PSSessionOpenFailed
Import-PSSession : Cannot validate argument on parameter 'Session'. The argument is null. Provide a valid value for the argument, and then try running the command again.
At C:\UcMadScientist\PowerShell-Functions\public\New-UcmEXHOConnection.ps1:128 char:43
`PS C:\UcMadScientist\PowerShell-Functions> New-UcmEXHOConnection VERBOSE: New-UcmEXHOConnection called with New-UcmEXHOConnection
INFO: Connecting to Exchange Online New-PSSession : [outlook.office365.com] Connecting to remote server outlook.office365.com failed with the following error message : Access is denied. For more information, see the about_Remote_Troubleshooting Help topic. At C:\UcMadScientist\PowerShell-Functions\public\New-UcmEXHOConnection.ps1:127 char:25
Name Value
Function New-UcmEXHOConnection
Status OK
Message Connected
`