Open winrm service on windows

Because the remote powershell management must enable the winrm service, the winrm service needs to be enabled on the windows platform. The
winrm service is not enabled by default. Check the status first; if there is no return information, it is not started;

winrm enumerate winrm/config/listener

Basic configuration for winrm service:

winrm quickconfig

View winrm service listener:

winrm e winrm/config/listener

Configure auth for winrm service:

winrm set winrm/config/service/auth @{Basic="true"}

Configure the encryption method for winrm service to allow non-encryption:

winrm set winrm/config/service @{AllowUnencrypted="true"}

Remember some more commonly used commands

Why is the command winrm client on the server side? I found that there should be no problem if you enter according to the normal command. I believe this problem is not a difficult problem, because the remote management of windows by powershell is a must-have function for system administrators and must be implemented. The problem has been solved, I should be able to get it out as long as I slowly do it.
Execute the following command to get instances at a speed of up to 50 instances per group.

winrm set winrm/config @{MaxBatchItems="50"}

In addition, by increasing the allocated maximum packet size and timeout settings, performance can also be improved.

winrm set winrm/config @{MaxEnvelopeSizekb="150"}
winrm set winrm/config @{MaxTimeoutms ="60000"}

Other optional WinRM configuration commands are listed below for your reference. To get the current WinRM configuration settings, execute the following command:

winrm g winrm/config

By default, client computers require encryption of network traffic. To allow client computers to request unencrypted traffic, execute the following command:

winrm s winrm/config/Client @{AllowUnencrypted="true"}

TrustedHosts 是一个数组,用于指定可信的远程计算机的列表。同一工作组中的其他计算机或不同域中的计算机均应添加到此列表中。

Note: The computers in the TrustedHosts list are not authenticated.
Execute the following command to include all computers in TrustedHosts.

winrm s winrm/config/Client @{TrustedHosts="*"}

Basic authentication is a scheme in which the user name and password are sent to the server or proxy in clear text. This is the least secure authentication method. The default value is True.
Execute the following command to set the client computer to use basic authentication:

winrm s winrm/config/Client/Auth @{Basic="true"}
Published 285 original articles · praised 492 · 3.89 million views

Guess you like

Origin blog.csdn.net/huwei2003/article/details/104774992