在 Win10 管理员 PowerShell 里逐条执行:
1)开远程管理
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "192.168.1.23"; Set-Item WSMan:\localhost\Service\AllowUnencrypted $true; Set-Item WSMan:\localhost\Service\Auth\Basic $true; Restart-Service WinRM2)连回 Mac 土同学
$cred = Get-Credential; Enter-PSSession -ComputerName 192.168.1.23 -Credential $cred -Authentication Basic执行后会弹出窗口,输 Win10 用户名和密码。
连上后你会看到:
[192.168.1.23]: PS C:\Users\你的名字>说明通了,土同学就能直接装 WSL2 + Hermes。