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