PowerShell & Office 365 Remoting Broken - Fix
-
If you are unable to connect to O365 via PowerShell and get an error similar to below, follow these instructions.
Error:
Import-PSSession : Could not load type ‘System.Management.Automation.SecuritySupport’ from assembly
‘System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’.The fix:
- Open up an elevated PowerShell prompt and type:
- wusa /uninstall /kb:3176934
- Reboot required
Link:
https://blogs.msdn.microsoft.com/powershell/2016/08/23/powershell-dsc-broken-in-kb3176932/
-
Thanks
-
@Tim_G said in PowerShell & Office 365 Remoting Broken - Fix:
wusa
Thanks.
Just to clarify: PowerShell is not required here because wusa(.exe) is a regular executable file, not a cmdlet. Any other way that let you execute a program with elevated rights will do (e.g. cmd.exe, shortcuts, ...)