Forum Discussion
Alex Melching
Aug 17, 2016Iron Contributor
PowerShell to Office 365 Broken?
When connecting to an Office 365 tenant via PowerShell and running the usual commands to connect, cannot import the session. PS C:\Users\Alex> Import-PSSession $Session Import-PSSession : Could ...
Vadivelu_Balusamy
Aug 17, 2016Iron Contributor
Alex Melching : You are try to connect the $session ? where it the declaration of the $session. Recommend to check the blow article for more info about the Import-PSSession
https://technet.microsoft.com/en-us/library/hh849970.aspx?f=255&MSPPError=-2147217396
If you are try to connect the Office365 Tenant and use the all modules inside the O365 , refer the below article
https://technet.microsoft.com/en-us/library/dn568015.aspx?f=255&MSPPError=-2147217396
Hope it will give some better idea...
https://technet.microsoft.com/en-us/library/hh849970.aspx?f=255&MSPPError=-2147217396
If you are try to connect the Office365 Tenant and use the all modules inside the O365 , refer the below article
https://technet.microsoft.com/en-us/library/dn568015.aspx?f=255&MSPPError=-2147217396
Hope it will give some better idea...
- Alex MelchingAug 17, 2016Iron Contributor
Yes, I only copied the error message from the PS window. I have been using PowerShell for quite some time and just today started experiencing this issue. I have now seen the same error start to pop up on other forums.
- Alex MelchingAug 17, 2016Iron Contributor
Side note: My Windows 10 did get updated to 14393.82. So I now have PowerShell version 5.1.14393.82. Will check an older machine.
- Alex MelchingAug 17, 2016Iron Contributor
Confirmed. Previous version of PowerShell 5.1.14393.0 connects fine to Office 365. Something wrong in with new version.