为什么测试连接命令不起作用并出现以下错误

为什么测试连接命令不起作用并出现以下错误
Test-Connection -ComputerName testserver.example.com -Count 1
Test-Connection : Provider load failure 
At line:1 char:1
+ Test-Connection -ComputerName testserver.example.com -Count 1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Test-Connection], ManagementException
    + FullyQualifiedErrorId : TestConnectionException,Microsoft.PowerShell.Commands.TestConnectionCommand

我删除了 -Count 1 然后我得到了这个

PS C:\Output_Monitors> Test-Connection -ComputerName testserver.example.com 
Test-Connection : 
At line:1 char:1
+ Test-Connection -ComputerName testserver.example.com
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Test-Connection], COMException
    + FullyQualifiedErrorId : TestConnectionException,Microsoft.PowerShell.Commands.TestConnectionCommand

然后我确实喜欢删除-ComputerName

PS C:\Output_Monitors> Test-Connection testserver.example.com
Test-Connection : Provider load failure 
At line:1 char:1
+ Test-Connection testserver.example.com
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [Test-Connection], ManagementException
    + FullyQualifiedErrorId : TestConnectionException,Microsoft.PowerShell.Commands.TestConnectionCommand

相关内容