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

วิธีจำกัดการเข้าถึงไดรฟ์ใน Windows 10

Windows รองรับ Multiple User Accounts หากคอมพิวเตอร์ใช้ร่วมกัน (ครอบครัว/เพื่อน) ควรมีความเป็นส่วนตัวสำหรับไฟล์/โฟลเดอร์/ไดรฟ์ การจำกัดไดรฟ์แตกต่างจากการจำกัดไฟล์/โฟลเดอร์ มี Setting เฉพาะ

วิธีจำกัดการเข้าถึงไดรฟ์ใน Windows 10

มีหลายวิธี: Local Group Policy (จำกัด/ซ่อนไดรฟ์) แต่มีตัวเลือกจำกัด (Drive Letters จำกัด) และ Windows Home ไม่มี gpedit.msc จึงมี Registry Editor Method (เพิ่ม Drive Letter ใดๆ ก็ได้ ทุก Edition)

จำกัดการเข้าถึงไดรฟ์ผ่าน Local Group Policy Editor

Policy: Prevent access to drives from My Computer Enable และเลือก Drive Combination

หมายเหตุ: Windows Home Edition ข้ามวิธีนี้ ใช้ Registry Editor

  1. Win+R > gpedit.msc > Enterวิธีจำกัดการเข้าถึงไดรฟ์ใน Windows 10
  2. User Configuration > Administrative Templates > Windows Components > File Explorerวิธีจำกัดการเข้าถึงไดรฟ์ใน Windows 10
  3. Double-click Prevent access to drives from My Computer > Enabled > เลือก Drive Combinationวิธีจำกัดการเข้าถึงไดรฟ์ใน Windows 10
  4. Apply > OK
  5. ยกเลิกการจำกัด: เปลี่ยนเป็น Not Configured หรือ Disabled

จำกัดการเข้าถึงไดรฟ์ผ่าน Registry Editor

Registry Editor เก็บ Low-level Settings สร้าง/ลบ Keys/Values ได้ ผิดพลาดอาจทำให้ระบบเสียหาย Backup Registry ก่อน

ใช้ได้ทั้ง All Users (HKLM) และ Current User (HKCU) Path เหมือนกัน Hive ต่างกัน

  1. Win+R > regedit > Enter > Yes (UAC)วิธีจำกัดการเข้าถึงไดรฟ์ใน Windows 10
  2. User Hive: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
  3. Right pane > New > DWORD (32-bit) Value > ชื่อ NoViewOnDriveวิธีจำกัดการเข้าถึงไดรฟ์ใน Windows 10
  4. Double-click NoViewOnDrive > Base = Decimal วิธีจำกัดการเข้าถึงไดรฟ์ใน Windows 10 (ตัวอย่าง: จำกัด D Drive)
  5. Value Data = ผลรวม Decimal ของ Drive ที่ต้องการจำกัด:
    A:1, B:2, C:4, D:8, E:16, F:32, G:64, H:128, I:256, J:512, K:1024, L:2048, M:4096, N:8192, O:16384, P:32768, Q:65536, R:131072, S:262144, T:524288, U:1048576, V:2097152, W:4194304, X:8388608, Y:16777216, Z:33554432, ALL:67108863
  6. หลาย Drive = รวมค่า (Sum) เช่น ซ่อน C และ D = 4+8 = 12วิธีจำกัดการเข้าถึงไดรฟ์ใน Windows 10
  7. Restart Computer
  8. ยกเลิกการจำกัด: Value Data = 0 หรือ Delete Value