Why i am not able to run this cmdlet ?
I want to run this command into remote machine.
Invoke-Command -ComputerName "IP" -Credential domain\username -ScriptBlock { Get-Item }
Error:
[<IP>] Connecting to remote server <IP> failed with the
following error message : WinRM cannot complete the operation. Verify that the
specified computer name is valid, that the computer is accessible over the
network, and that a firewall exception for the WinRM service is enabled and
allows access from this computer. By default, the WinRM firewall exception for
public profiles limits access to remote computers within the same local subnet.
For more information, see the about_Remote_Troubleshooting Help topic.
+ CategoryInfo : OpenError: (<IP>:String) [], PSRemotingT
ransportException
+ FullyQualifiedErrorId : WinRMOperationTimeout,PSSessionStateBroken