更新时间:2022-12-23 12:10:16
如果你试试这个方法呢?
And if you try this method?
在本地机器上运行这个命令:
Run this command on your local machine :
$computer = "COMP1"
([WMICLASS]"\\$computer\ROOT\CIMV2:Win32_Process").Create('C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -WindowStyle Hidden -File "script.ps1"')