在两台服务器上安装了ExchangeOnlineManagement模块,并在安装后验证了目录,但是每当我尝试执行基本命令时:
Connect-ExchangeOnline
或其任何版本,例如:
Connect-ExchangeOnline -UserPrincipalName ####@###.com -ShowBanner:$false
我遇到以下错误:
Could not load file or assembly 'System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The
system cannot find the file specified.
At C:\Program Files\WindowsPowerShell\Modules\ExchangeOnlineManagement\3.0.0\netFramework\ExchangeOnlineManagement.psm1:726 char:21
+ throw $_.Exception.InnerException
我已验证是否安装了.NET4.6。我不太确定要在这里托运什么。
谢谢!
1条答案
按热度按时间3bygqnnd1#
在服务器2016上安装.NET 4.8为我解决了同样的问题。