通過 PowerShell 連線到遠端伺服器

使用本地計算機的憑據:

Enter-PSSession 192.168.1.1

提示遠端計算機上的憑據

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