Download and install the latest ExO powershell module:
https://learn.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello team.
I am trying to force exchange In-place archive for a user by name of ******@M365x59079022.OnMicrosoft.com
using PowerShell by running the code below:
$UserCredential = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection
Import-PSSession $Session
Start-ManagedFolderAssistant -Identity ******@M365x59079022.OnMicrosoft.com
After executing the powershell, I am able to log in using my Global admin accounts but I get this error below
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 line:2 char:12 + $Session = New-PSSession -ConfigurationName Microsoft.Exchange -Conne ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 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 line:3 char:18 + Import-PSSession $Session + ~~~~~~~~ + CategoryInfo : InvalidData: (:) [Import-PSSession], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.ImportPSSessionCommand
I have checked and confirmed that:
Find Visual imagery for the code and the error receive
Download and install the latest ExO powershell module:
https://learn.microsoft.com/en-us/powershell/exchange/exchange-online-powershell-v2?view=exchange-ps
Hello @Jarvis Sun-MSFT I have even created a new Business Premium Tenant and as you can see visually, below are the screenshots for the licenses assignment and Admin Roles
Please hopefully everything is checked well
Here's still our cmdlet
I have run it as s an administrator in the tenant and I did also run powershell in admin mode
Please where may I be missing something?
I still need help am getting the same error on a jew tenant