Scenario :
Error while running command O365 "Connect-ExchangeOnline.ps1"
Issue :
Following Error received
New-PSSession : [outlook.office365.com] Connecting to remote server outlook.office365.com failed
with the following error message: The WinRM client cannot process the request. Basic
authentication is currently disabled in the client configuration. Change the client
configuration and try the request again. For more information, see the
about_Remote_Troubleshooting Help topic.
At C:\Scripts\Connect-ExchangeOnline.ps1:2 char:12
+ $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri ht ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New
-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : -2144108321,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:\Scripts\Connect-ExchangeOnline.ps1:3 char:18
+ Import-PSSession $Session
+ ~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Import-PSSession], ParameterBindingValidationExc
eption
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.ImportPSSessionCommand
Resolution :
1. Check the Service "Windows Remote Management (WS-Management)
Get-Service "Windows Remote Management (WS-Management)"
If this service is stop, Start "WinRM"
2. From Registry i.e RegEdit.exe
Locate the following
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client]
find the Dword, if it is set to "0", Enable it to 1
"AllowBasic"=dword:00000001
Error while running command O365 "Connect-ExchangeOnline.ps1"
Issue :
Following Error received
New-PSSession : [outlook.office365.com] Connecting to remote server outlook.office365.com failed
with the following error message: The WinRM client cannot process the request. Basic
authentication is currently disabled in the client configuration. Change the client
configuration and try the request again. For more information, see the
about_Remote_Troubleshooting Help topic.
At C:\Scripts\Connect-ExchangeOnline.ps1:2 char:12
+ $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri ht ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OpenError: (System.Manageme....RemoteRunspace:RemoteRunspace) [New
-PSSession], PSRemotingTransportException
+ FullyQualifiedErrorId : -2144108321,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:\Scripts\Connect-ExchangeOnline.ps1:3 char:18
+ Import-PSSession $Session
+ ~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Import-PSSession], ParameterBindingValidationExc
eption
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.ImportPSSessionCommand
Resolution :
1. Check the Service "Windows Remote Management (WS-Management)
Get-Service "Windows Remote Management (WS-Management)"
If this service is stop, Start "WinRM"
2. From Registry i.e RegEdit.exe
Locate the following
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WinRM\Client]
find the Dword, if it is set to "0", Enable it to 1
"AllowBasic"=dword:00000001
No comments:
Post a Comment