📅  最后修改于: 2022-03-11 14:50:11.698000             🧑  作者: Mango
$cred = Get-Credential
Invoke-Command -ComputerName Computer1 -Credential $cred -ScriptBlock { Test-Path "C:\Temp\test.txt" }