Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การแก้ไขปัญหา >> ข้อผิดพลาด Windows

ตั้งค่า Auto Shutdown Windows 10: Task Scheduler และ Command Prompt

ดาวน์โหลดไฟล์ใหญ่หรือติดตั้งโปรแกรมนานๆ ต้องการปิดเครื่องอัตโนมัติ Windows 10 มีฟีเจอร์นี้ แต่หลายคนไม่รู้ ใช้วิธีไหนก็ได้ตามความสะดวก

ตั้งค่า Auto Shutdown Windows 10

สร้าง Restore Point ก่อน

วิธีที่ 1: ใช้ Task Scheduler (ยืดหยุ่นที่สุด)

  1. Win + R → taskschd.msc Enter
  2. ขวามือ Actions → Create Basic Task
  3. ตั้งชื่อ/รายละเอียด → Next
  4. เลือก Trigger: Daily, Weekly, Monthly, One time → Next
  5. ตั้ง Start date/time → Next
  6. Action: Start a program → Next
  7. Program/Script: C:\Windows\System32\shutdown.exe
  8. Add arguments: /s /f /t 0 (0 = ทันที, 60 = 1 นาที, 3600 = 1 ชั่วโมง) → Next
  9. ติ๊ก Open the Properties dialog when I click Finish → Finish
  10. แท็บ General → ติ๊ก Run with highest privileges
  11. แท็บ Conditions → ยกเลิก Start the task only if the computer is on AC power
  12. แท็บ Settings → ติ๊ก Run task as soon as possible after a scheduled start is missed
  13. เสร็จแล้ว เครื่องจะปิดตามเวลาที่ตั้ง

วิธีที่ 2: ใช้ Command Prompt (เร็ว สำหรับครั้งเดียว)

  1. เปิด CMD (Admin)
  2. พิมพ์: shutdown –s –t number (number = วินาที, เช่น 3600 = 1 ชม.)
  3. Enter → จะมีแจ้งเตือนตัวนับถอยหลัง

สามารถใช้ PowerShell หรือ Run dialog (Win+R) พิมพ์คำสั่งเดียวกันได้

บทความแนะนำ:

  • แก้ Windows Defender Update error 0x80070643
  • แก้ Playback doesn’t begin shortly
  • แก้ Sec_error_expired_certificate
  • แก้ Favorites missing in IE Windows 10

เรียนรู้ ตั้งค่า Auto Shutdown Windows 10 เรียบร้อย ถามได้ในความคิดเห็น