在两个服务器上安装了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我已经验证已经安装了.NET 4.6。不知道在这里查什么。
谢谢!
发布于 2022-10-30 18:06:16
.NET 4.8的安装解决了我在服务器2016上的相同问题。
https://stackoverflow.com/questions/74070695
复制相似问题