我确实有以下设置:
a win PC,安装了gitlab运行器,运行在同一台PC上的powershell脚本正在启动应用程序,gitlab服务器连接此本地PC并启动powershell脚本。现在,当直接从本地PC启动powershell脚本时,应用程序将在完成后启动和终止--按预期工作。当使用gitlab服务器(Yml)启动相同的powershell脚本时,我可以看到应用程
背景在任务计划程序中创建新任务时,默认情况下选项Start the task only if the computer is on AC power和Stop if the computer switches但是,当AC适配器被插入时,我不想停止脚本。因此,我希望检测任务调度程序,当脚本切换到电池电源并让用户设置这些选项时,尝