แชร์คอมพิวเตอร์งาน/บ้านกับคนอื่น? แอปและไฟล์จาก Guest Accounts กินพื้นที่ดิสก์เยอะเกินไป? Windows มี Quota System ให้ Admin ควบคุม Storage ได้ ใช้ได้กับ Internal และ External Drives
บทความนี้แนะนำขั้นตอนควบคุมข้อมูลที่ User เก็บได้ โดยตั้ง Disk Quota Limit หมายเหตุ: Quota Management ทำงานได้เฉพาะ Drive ที่ Format เป็น NTFS เท่านั้น
ตั้งค่า Disk Quota ผ่าน File Explorer (วิธีง่ายที่สุด)
- เปิด File Explorer → เลือก This PC ด้านซ้าย
- เลื่อนไป "Devices and drives" → คลิกขวา Drive ที่ต้องการจำกัด → Properties
- แท็บ Quota → Show Quota Settings
- ติ๊ก Enable quota management
- ติ๊ก Deny disk space to users exceeding quota limit (บังคับจำกัด ไม่ให้เขียนข้อมูลเมื่อเกิน)
- เลือก Limit disk space to
- ตั้งค่า Limit: เช่น 30 GB → ใส่ 30 ในช่องแรก เลือก GB ใน Dropdown
- ตั้ง Warning Level ต่ำกว่า Limit เล็กน้อย (เช่น Limit 30 GB → Warning 25 GB) Windows จะแจ้งเตือนเมื่อใกล้ครบ
- ติ๊ก Log Event เมื่อ User เกิน Quota หรือเกิน Warning Level (บันทึกใน Event Viewer)
- กด Apply
- กด OK บน Warning Prompt เพื่อเปิดใช้งาน Quota
- กด OK ใน Quota Settings Window
หมายเหตุ: อาจต้อง Restart คอมพิวเตอร์ Quota เป็น Drive-Specific — ถ้ามี Partition หลาย Partition (แยกจาก C:) Quota บน C: ไม่ครอบคลุม Partition อื่น
ดูและปรับ Disk Quota Limit ต่อ User
Quota Limit ที่ตั้งจะครอบคลุมทุก User บนเครื่อง มี Tool Quota Entries ใน Quota Settings Window ปรับ/ปิด Quota ได้ต่อ User เช็คพื้นที่ที่ใช้ vs Quota ได้
- เปิด Quota Settings → กด Quota Entries
- คอลัมน์ "Amount Used" และ "Quota Limit" แสดงการใช้งาน vs ขีดจำกัด
- ถ้าไม่เจอ User ในรายการ → เพิ่มเอง: Quota Menu → New Quota Entry → Advanced → Find Now → Double-click User → OK
- ตั้ง Quota Limit และ Warning Level ให้ User นั้น → OK
- ปรับ/ปิด Quota ของ User: คลิกขวา User → Properties → ปรับ Limit/Warning → Apply → OK
- ยกเลิก Quota: เลือก "Do not limit disk usage" → Apply → OK หรือ คลิกขวา User → Delete
Delete User จาก Quota Entries: Next Page → Take Ownership (เก็บไฟล์ในพื้นที่ที่จัดสรร) หรือ Delete (ไม่ต้องการไฟล์)
ตั้ง Disk Quota ผ่าน Group Policy Editor (สำหรับ Pro/Education/Enterprise)
ถ้า File Explorer ไม่บังคับ Quota ได้ ให้แก้ใน Group Policy Editor (Windows 11 Home ไม่มี ให้用 Registry Editor แทน)
- Win+R →
gpedit→ Enter - Sidebar: Computer Configuration → Administrative Templates → System → Disk Quotas
- Double-click Enable disk quotas → Enabled → Apply → OK
- Double-click Enforce disk quota limit → Enabled → Apply → OK
- Double-click Specify default quota limit and warning level → Enabled → ใส่ค่า Limit/Warning/Unit → Apply → OK
- ถ้าอยากให้ Policy ครอบคลุม Removable/External Drives: Double-click Apply policy to removable media → Enabled
ตั้ง Disk Quota ผ่าน Registry Editor
บังคับ Quota ผ่าน Registry (Backup Registry ก่อนเสมอ!)
- Win+R →
regedit→ OK - วาง Path:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\DiskQuota→ Enter - ตรวจสอบ Keys Enable และ Enforce ต้องเป็น 1 (Enabled) ทั้งคู่
- Double-click Enable/Enforce → Value data = 1 → OK
ทำให้การจัดการ Storage เป็นอัตโนมัติ
ขั้นตอนข้างต้นตั้งระบบ Disk Quota Management ใน Windows 11 ได้ ย้อนรุ่นได้: Windows 10, 8, 7 ใช้วิธีเดียวกัน