Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Exchange Online Access denied #28

Closed
hugo320 opened this issue Jan 5, 2021 · 2 comments
Closed

Exchange Online Access denied #28

hugo320 opened this issue Jan 5, 2021 · 2 comments
Assignees
Labels
invalid This issue or pull request is not applicable, incorrect, or obsolete need info This issue or pull request requires further information

Comments

@hugo320
Copy link

hugo320 commented Jan 5, 2021

I met below error while running this script, and would like to know do you have any guidance on how to run this script in steps.

New-ExoPSSession : Connecting to remote server partner.outlook.cn failed with the following error message : Access is
denied. For more information, see the about_Remote_Troubleshooting Help topic.
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\2.0.3\ExchangeOnlineManagement.psm1:426 char:30

  • ... PSSession = New-ExoPSSession -ExchangeEnvironmentName $ExchangeEnviro ...
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : ResourceUnavailable: (:) [New-ExoPSSession], PSRemotingTransportException
    • FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException,Microsoft.Exchang
      e.Management.ExoPowershellSnapin.NewExoPSSession
@DeemOnSecurity
Copy link
Contributor

It appears to be a permission issue, see this article.

@DeemOnSecurity DeemOnSecurity self-assigned this Jan 5, 2021
@DeemOnSecurity DeemOnSecurity added the invalid This issue or pull request is not applicable, incorrect, or obsolete label Jan 5, 2021
@DeemOnSecurity
Copy link
Contributor

Pinging to make sure you were able to resolve! Going to close at the end of the week if nothing is heard.

@DeemOnSecurity DeemOnSecurity added the need info This issue or pull request requires further information label Jan 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
invalid This issue or pull request is not applicable, incorrect, or obsolete need info This issue or pull request requires further information
Projects
None yet
Development

No branches or pull requests

2 participants