タスクスケジューラ

技術メモメモ: タスクスケジューラーを使って1分間隔で実行するタスクを作成する方法

起動バッチ

@echo off
powershell -NoProfile -ExecutionPolicy Unrestricted .\hina.ps1
exit

hina.ps1

$time = get-random -minimum 1 -maximum 5;
Write-Host "wait time $time."
Start-Sleep -Seconds $time

www.cyprich.com