Windows タスクを作成し、1 時間ごとに実行するようにスケジュールしました。
1 時間ごとにタスクが実行されますが、警告が表示Task Scheduler did not launch task "\Sample Task" because computer is running on batteries. User Action: If launching the task on batteries is required, change the respective flag in the task configuration.
され、タスクが途中で終了します。
フォームからユーザー入力を受け取るタスクを作成する必要があるため、タスクの作成にSCHTASKS.exeを使用しています。
コマンドを使用して、電源オプションを削除します。
これは可能ですか?