説明なし

KBRemover-TaskAdder.bat 462B

123456789101112
  1. @echo off
  2. rem Escalate to administrator privileges
  3. powershell -Command "Start-Process cmd -Verb runAs"
  4. rem Add Task Scheduler entry
  5. schtasks /create /tn "KBRemover" /tr "powershell -File C:\MCW\KBRemover.ps1" /sc DAILY /st 07:00 /ru System
  6. rem If the task fails to run, it will run on the next computer startup
  7. schtasks /create /tn "KBRemover" /tr "powershell -File C:\MCW\KBRemover.ps1" /sc ONSTART /ru System
  8. echo Task Scheduler entry created successfully.

Powered by TurnKey Linux.