Windows Remote management (WinRM)

Server2008R2 The service is enabled by default in , from Server2012 Start , The service is integrated into the system and is enabled by default ,Win7 This service is installed by default , But it's disabled by default ,Win8,Win10 Default on . This remote connection is not detected by the client , It doesn't take up the number of remote connections !

The use of port :http 5985 https 5986

// Fast running on the server winrm  
c:\> winrm quickconfig                    
  
// see winrm Operating condition   
c:\> winrm e winrm/config/listener        
  
// see winrm Configuration of   
c:\> winrm get winrm/config             
  
//  take service Medium allowUnencrypted Set to true, Allow unencrypted communication   
c:\> winrm set winrm/config/service @{AllowUnencrypted="true"}      
  
// take client The basic authentication in is set to true, allow   
c:\> winrm set winrm/config/client/auth @{Basic="true"}             
  
//  take client Medium allowUnencrypted Set to true, Allow unencrypted communication   
c:\> winrm set winrm/config/client @{AllowUnencrypted="true"}      
  
//  Set the client address trusted by the host , here host1,2,3 Can fill in your client machine's ip Or host name   
c:\> winrm set winrm/config/client @{TrustedHosts="host1, host2, host3"}