通过 PowerShell 连接到远程服务器

使用本地计算机的凭据:

Enter-PSSession 192.168.1.1

提示远程计算机上的凭据

Enter-PSSession 192.168.1.1 -Credential $(Get-Credential)