启动请求被忽略,当我们传递隐藏在命令行中的 powershell.exe -windowstyle 时实例已经在运行?

问题描述

我看到我们可以通过以下链接解决这个问题 Windows Task Scheduler "Launch request ignored,instance already running"

这不是那个问题的重复。

我需要在不去任务计划程序的情况下完成

       i.e.,i need to pass this " Change this to "Run a new instance in parallel ". through commandline arguments

SCHTASKS /CREATE /SC MINUTE /TN "My Tasks\TestTask" /TR "powershell.exe  -windowstyle hidden -executionpolicy unrestricted -noexit -command &{C:\Test\Test.ps1}"

而且我无法在此传递动态日期和时间

SCHTASKS /CREATE /SC ONCE /TN "My Tasks\NaviplexMonitor" /TR "powershell.exe  -executionpolicy unrestricted -noexit -command &{C:\Naviplex\Monitor\Navisch.ps1}" /SD %date:~4,2%/%date:~7,2%/%date:~10,4% /ST %time /t% 

           How to configure this to windows 10 through command ?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)