PowerShell Remote – WinRM cannot complete the operation

Enter-PSSession : Connecting to remote server 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.