I am testing windows 10 and PowerShell v5. I am experiencing a problem when I run an Import-PSSession to Office 365.
$LiveCred=Get-Credential #Cloud credentials $ex = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication basic -AllowRedirection Import-PSSession $ex -Prefix
PowerShell freezes after the commando “$ ex = New-PSSession etc.” I get “Warning: Your connection Has been redirected etc” but then it stops.
Nothing more happens. I’ve tried to break it up and run line by line, but still the same error, PowerShell freezes.
This applies regardless of where I run the command, PowerShell, PowerShell ISE, PowerShell Studio. I have to close PowerShell after this.
Could it be a Windows 10 bug, or it could be something else.