Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> ระบบ >> Windows 10

10 วิธี Windows Group Policy ทำให้ PC ดีกว่าเดิม

อยากเปลี่ยนพฤติกรรม Windows 10 บ้างไหม? อาจอยากควบคุมฟีเจอร์บางอย่างมากขึ้น หรือ tweak ตั้งค่าที่ไม่มีใน Settings panel

วิธีดีๆ ได้ control มากขึ้นคือใช้ Group Policy มี Group Policy settings เยอะมากที่ home users ใช้ tweak Windows 10 ได้ มาดู settings ที่ดีที่สุดสำหรับทำให้ระบบดียิ่งขึ้น

Windows Group Policy คืออะไร?

Group Policy ให้วิธี centralized configure และ enforce settings ต่างๆ ข้ามคอมพิวเตอร์บน Active Directory network Settings เหล่านี้ maintained by domain controller คอมพิวเตอร์แต่ละเครื่อง override ไม่ได้

ดังนั้น Group Policy common บน Windows domains ในธุรกิจ แต่คอมพิวเตอร์ไม่อยู่บน Active Directory (คือ home machines ส่วนใหญ่) ยัง tweak settings locally ด้วย Local Group Policy Editor ได้

คิดว่านี่เหมือน Control Panel แต่ powerful กว่า ด้วย Group Policy จำกัดการเข้าถึงส่วนของระบบ บังคับ homepage ให้ทุก user รัน scripts ตอน startup/shutdown ได้

เบื้องหลัง ตัวเลือกใน Group Policy Editor ส่วนใหญ่ tweak Windows Registry Group Policy Editor ให้ interface ใช้งานง่ายกว่าเลข registry เอง

ข้อเสียคือ default Group Policy มีแค่ Windows Professional หรือสูงกว่า ถ้าอยู่ Windows Home อาจ convince ให้ upgrade Windows 10 Pro แตมี workaround ที่เราจะกล่าว

เข้าถึง Group Policy Editor

เข้าถึง Group Policy Editor ง่ายกว่าที่คิด โดยเฉพาะ Windows 10 มีหลายวิธี

วิธีน่าเชื่อถือ:

  1. เปิด Start Menu
  2. ค้นหา group policy
  3. Launch Edit group policy ที่ขึ้นมา
10 วิธี Windows Group Policy ทำให้ PC ดีกว่าเดิม

อีกวิธี กด Win + R เปิด Run dialog พิมพ์ gpedit.msc launch Group Policy Editor

กล่าวว่า Group Policy ไมมีใน Home editions แต่มี workaround ลองได้ เกี่ยวกับ system tweaks พื้นฐานและติดตั้ง third-party Group Policy Editor

สนใจ ดู step-by-step guide ติดตั้ง Group Policy Editor บน Windows Home

นำ Group Policy Updates ไปใช้

บาง Group Policy settings ต้อง reboot ก่อนจะมีผล ถ้าเสร็จการเปลี่ยนแปลง เปิด elevated Command Prompt รันคำสั่ง:

gpupdate /force

Force ให้ updates ที่ทำใน Group Policy 有效ทันที

สิ่งน่าสนใจที่ทำได้ด้วย Group Policy

10 วิธี Windows Group Policy ทำให้ PC ดีกว่าเดิม

Group Policy Editor เปลี่ยน options, preferences, settings หลายร้อยอย่าง ไม่ครอบคลุมทั้งหมดได้

สำรวจได้อิสระ แต่ถ้าไม่มั่นใจ ควรหลีกเลี่ยง experiment random policies tweak ผิดหนึ่งอาจก่อปัญหาหรือพฤติกรรมไม่พึงประสงค์ อ่าน introduction to Group Policy ให้คุ้นเคยก่อน

มาดู recommended Group Policy settings เริ่มต้นกัน

1. จำกัดการเข้าถึง Control Panel และ Settings

10 วิธี Windows Group Policy ทำให้ PC ดีกว่าเดิม

Control Panel restrictions สำคัญสำหรับ network ธุรกิจและโรงเรียน แต่บ้านก็ใช้ได้สำหรับคอมพิวเตอร์แชร์หลาย user อยากกันเด็กเปลี่ยนตั้งค่า ขั้นตอนนี้ดี

บล็อก Control Panel ทั้งหมด: เปิด object นี้:

User Configuration > Administrative Templates > Control Panel > Prohibit access to Control Panel and PC Settings

ถ้าอยากให้เข้าถึงบางส่วนของ Control Panel ตั้งค่าด้วย 2 items นี้:

User Configuration > Administrative Templates > Control Panel > Hide specified Control Panel items
User Configuration > Administrative Templates > Control Panel > Show only specified Control Panel Item

Enable แล้วระบุ Control Panel Applets ที่อยาก show/hide ใช้ Canonical Names of Control Panel Items ของ Microsoft

2. บล็อก Command Prompt

แม้ Command Prompt จะมีประโยชน์ แต่อาจเป็นภาระในมือที่ผิด อนุญาตรันคำสั่งไม่พึงประสงค์ และหลีกเลี่ยง restrictions อื่นๆ ไม่ดี ดังนั้น disable ได้

Disable Command Prompt ไปที่ value นี้:

User Configuration > Administrative Templates > System > Prevent access to the command prompt

หมายเหตุ: enable restriction นี้ cmd.exe รันไม่ได้เลย ป้องกันการรัน batch files .CMD หรือ .BAT ด้วย

3. ป้องกันการติดตั้งซอฟต์แวร์

10 วิธี Windows Group Policy ทำให้ PC ดีกว่าเดิม

หลายวิธีบล็อก user ติดตั้งซอฟต์แวร์ใหม่ ลด maintenance ตอนคนติดตั้ง junk โดยไม่คิด ลดโอกาส malware เข้าระบบ

ป้องกันการติดตั้งซอฟต์แวร์ด้วย Group Policy ไปที่:

Computer Configuration > Administrative Templates > Windows Components > Windows Installer > Turn off Windows Installer

หมายเหตุ: บล็อก Windows installer เท่านั้น ยังติดตั้งแอปผ่าน Windows Store ได้

4. ปิด Forced Restarts

Windows 10 จะ restart เองสุดท้ายถ้ามี updates pending แม้จะ delay ได้บ้าง ควบคุมกลับมาโดย enable Group Policy item หลังเปิด Windows จะ apply pending updates เฉพาะตอน restart เอง

อยู่ที่:

Computer Configuration > Administrator Templates > Windows Components > Windows Update > No auto-restart with logged on users for scheduled automatic update installations

5. ปิด Automatic Driver Updates

10 วิธี Windows Group Policy ทำให้ PC ดีกว่าเดิม

รู้ไหม Windows 10 อัปเดต device drivers โดยไม่ได้ permission صريح? หลายครั้งมีประโยชน์ เก็บระบบ up-to-date

แต่ถ้ารัน custom driver? หรือ latest driver ของ hardware บางตัวมีบั๊กทำให้ crash นี่คือเวลาที่ automatic driver updates หารมากกว่าประโยชน์

Enable นี้เพื่อปิด automatic driver updates:

Computer Configuration > Administrative Templates > System > Device Installation > Device Installation Restrictions > Prevent installation of devices that match any of these device IDs

Enable แล้วต้องระบุ hardware IDs สำหรับอุปกรณ์ที่ไมอยาก auto driver updates ต้องหาผ่าน Device Manager กี่ขั้นตอน ดูคู่มือควบคุม driver updates Windows 10 สำหรับคำแนะนำเต็ม

6. ปิด Removable Media Drives

10 วิธี Windows Group Policy ทำให้ PC ดีกว่าเดิม

Removable media เช่น USB flash drives มีประโยชน์ แต่อุปกรณ์ USB ไม่รู้จักก็อาจเสี่ยง คนเข้าถึงคอมพิวเตอร์อาจโหลด malware บน flash drive มารัน

แม้ไม่จำเป็นในกรณีส่วนใหญ่ แต่ป้องกัน Windows อ่าน removable drives ได้ เพื่อป้องกันระบบ สำคัญในธุรกิจโดยเฉพาะ

Disable removable media drives enable value นี้:

User Configuration > Administrative Templates > System > Removable Storage Access > Removable Disks: Deny read access

ในโฟลเดอร์นี้มี options สำหรับ media อื่นๆ เช่น CDs, DVDs disable ทั้งหมดได้ แต่ USB drives เป็นกังวลหลัก

7. ซ่อน Balloon และ Toast Notifications

Desktop notifications มีประโยชน์ตอนมีประโยชน์จริง แตส่วนใหญ่ไม worth reading มัก distract และทำให้เสียโฟกัส

Enable value นี้ disable balloon notifications ใน Windows:

User Configuration > Administrative Templates > Start Menu and Taskbar > Turn off all balloon notifications

ตั้งแต่ Windows 8 system notifications ส่วนใหญ่กลายเป็น toast notifications ควร disable ด้วย:

User Configuration > Administrative Templates > Start Menu and Taskbar > Notifications > Turn off toast notifications

วิธีง่ายบล็อก popup distractions เยอะ

8. ลบ OneDrive

OneDrive built-in ใน Windows 10 uninstall ได้เหมือนแอปอื่น แต่ป้องกันไม่ให้รันด้วย Group Policy item ได้

Disable OneDrive enable นี้:

Computer Configuration > Administrative Templates > Windows Components > OneDrive > Prevent the usage of OneDrive for file storage

จะลบความสามารถเข้าถึง OneDrive จากทุกที่ในระบบ ลบ OneDrive shortcut ใน sidebar ของ File Explorer ด้วย

9. ปิด Windows Defender

Windows Defender จัดการตัวเอง หยุดรันถ้าติดตั้ง third-party antivirus ถ้าไม่ทำงานถูกต้อง หรืออยากปิดสนิท เปิด Group Policy item นี้:

Computer Configuration > Administrative Templates > Windows Components > Windows Defender > Turn off Windows Defender

แม้ง่ายที่จะปิด Windows Defender เป็น security solution พอสมควรสำหรับคนส่วนใหญ่ ต้องแทนที่ด้วย trusted Windows antivirus program ถ้าลบมัน

10. รัน Scripts ตอน Logon/Startup/Shutdown

10 วิธี Windows Group Policy ทำให้ PC ดีกว่าเดิม

เคล็ดลับสุดท้าย advanced บ้าง น่าจะไม่ประโยชน์ถ้าไม่คล่อง batch files หรือเขียน PowerShell scripts แต่ถ้าคล่อง จริงๆ รัน scripts อัตโนมัติด้วย Group Policy ได้

Setup startup/shutdown script ไปที่:

Computer Configuration > Windows Settings > Scripts (Startup/Shutdown)

Setup logon/logoff script ไปที่:

User Configuration > Windows Settings > Scripts (Logon/Logoff)

ทำให้เลือก script files จริง และระบุ parameters ให้ scripts ยืดหยุ่น มอบ multiple scripts ให้แต่ละ trigger event ได้

หมายเหตุ: ไม่เหมือน launch โปรแกรมเฉพาะตอน startup ดูวิธีใช้ Windows startup folder สำหรับนั้น

Group Policy Settings ที่มีประโยชน์ที่สุดสำหรับคุณ

Group Policy ให้ control มากมายเกี่ยวกับ Windows 10 เราดูแค่บาง instance มี functionality เยอะกว่านี้รอการค้นพบ ตามที่เห็น options ส่วนใหญ่เกี่ยวกับการ remove หรือ block functionality ไม่ใช่เพิ่ม tools ใหม่

ไม่มี Group Policy หรืออยาก tweak Windows ต่อ? ดู introduction to Windows Registry ของเรา