我能做到但是,当我做了我一直在
Invoke-Command : Parameter set cannot be resolved using the specified named parameters.At line:1 char:1 + Invoke-Command -ScriptBlock { z:\prog.bat } -
我正在尝试运行invoke-命令,以便在powershell script in a powershell file上启动remote computer。我正在使用credentials for a user with Administrator privilege。该命令需要由running powershell as an administrator执行。我试图使用powershell脚本调用的应用程序存在许可问题,因此我不能将凭据更改为Administrator,但需要与特定用户运行。我尝试在<em