【发布时间】:2019-11-29 12:27:33
【问题描述】:
美好的一天,
我寻找与
相同的命令sc config BITS type= own 在 Powershell 中。
我认为与
set-service -name BITS -computername server1234 -idon´t know
我的问题是我的 INVOKE-COMMAND 不起作用。 但是所有脚本都只工作这一行不起作用。
Invoke-Command -ComputerName $serverneedhelp -ScriptBlock {Start-Process cmd -ArgumentList "/c 'sc config bits type= own'"}
如果有人可以帮助我,那就太好了。 谢谢你
问候 一月
【问题讨论】:
-
您是否尝试过直接调用
sc.exe而不是通过cmd?
标签: powershell sc