AI Roundtable Poll · 5 models
特定のPowerShellコード(現在メモ帳に保存しています)を毎日決まった時間に実行させることは可能か
Result: Unanimous — Yes (5/5 votes)
Options
- Yes (5 votes)
- No (0 votes)
Model Responses
Kimi K2.5
Vote: Yes
Windowsのタスクスケジューラを使用することで、PowerShellスクリプトを毎日決まった時間に自動実行できます。 現在メモ帳に保存されているコードを.ps1ファイルとして保存し、タスクスケジューラで新しいタスクを作成します。トリガーを「毎日」に設定し、実行するプログラムとして「powershell.exe」を指定し、引数に「-File スクリプトのパス」を渡すことで実現できます。 また、コマンドプロンプトからschtasksコマンドを使用する方法や、System Center Orchestratorなどの自動化ツールを使用することも可能です。
GPT-5.4
Vote: Yes
PowerShellコードを毎日決まった時間に実行することは可能です。 一般的には Windows の「タスク スケジューラ」を使って、指定時刻に PowerShell スクリプトを起動できます。 現在メモ帳に保存している内容も、.ps1 として保存し直せば実行対象にできます。したがって答えは Yes です。
Grok 4.20
Vote: Yes
It is possible to run a specific PowerShell script daily at a set time. Windows Task Scheduler allows creating recurring tasks that execute PowerShell.exe with the saved script file as an argument. Save the Notepad content as a .ps1 file first. Then configure a daily trigger in Task Scheduler and point the action to the script path. This is a built-in Windows feature that works reliably for automation.
Claude Opus 4
Vote: Yes
Yes, it is absolutely possible to run a specific PowerShell script at a scheduled time every day. The standard approach is to: 1. Save the PowerShell code from Notepad as a `.ps1` file (e.g., `script.ps1`). 2. Use **Windows Task Scheduler** (タスクスケジューラ) to create a scheduled task that runs daily at the desired time. 3. Configure the task's action to launch `powershell.exe` (or `pwsh.exe` for PowerShell 7+) with the `-File` parameter pointing to the `.ps1` script. You may also need to adjust the execution policy (e.g., `Set-ExecutionPolicy RemoteSigned`) to allow script execution. Additionally, alternatives like `schtasks` command-line tool or cron jobs (on Linux with PowerShell Core) can achieve the same result. This is a well-established, commonly used feature of Windows and PowerShell, so the answer is clearly Yes.
Gemini 3.1 Pro
Vote: Yes
はい、可能です。メモ帳に書かれたコードを「.ps1」という拡張子(例:script.ps1)で保存することで、PowerShellスクリプトファイルとして認識させることができます。 その後、Windowsに標準搭載されている「タスク スケジューラ」を使用することで、毎日決まった時間に自動実行させることが可能です。タスクスケジューラで新しいタスクを作成し、トリガーを「毎日〇時」に設定し、操作として「powershell.exe」を起動して引数に作成したスクリプトファイルのパスを指定するだけです。 これはWindows環境における最も標準的で信頼性の高い自動化手法です。
Final Summary
The AI Roundtable reached a swift and unanimous verdict, confirming that automating PowerShell scripts via Notepad is a fundamental Windows capability. Claude Opus 4 and Kimi K2.5 led the charge by detailing the transition from a text file to the Windows Task Scheduler, while Gemini 3.1 Pro emphasized this as the gold standard for reliable automation.
No agreement after 1 rounds of discussion. Final vote: Yes: 5
Strongest Arguments
- Yes: Saving the code as a .ps1 file and using Windows Task Scheduler to launch powershell.exe with the -File parameter is the standard, reliable method, though users must also ensure the system's Execution Policy allows the script to run.