# Windows 开启 winrm
```
Enable-PSRemoting
winrm enumerate winrm/config/listener
winrm quickconfig
winrm set winrm/config/service/auth @{Basic="true"}
winrm set winrm/config/service @{AllowUnencrypted="true"}
winrm set winrm/config/Client '@{TrustedHosts="*"}'
winrm set winrm/config/Client/Auth '@{Basic="true"}'
```