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

ทำไม PowerShell Cmdlets ที่เซ็นแล้วจึงทำงานช้ากว่าที่ไม่ได้เซ็นบน Windows 10

Cmdlet คือคำสั่งเบาๆ ที่ใช้ในสภาพแวดล้อม Windows PowerShell ในบทความนี้จะอธิบายสาเหตุและวิธีแก้ไขปัญหา Cmdlets ที่เซ็นแล้วทำงานช้ากว่าที่ไม่ได้เซ็น

สาเหตุ: Cmdlets ที่เซ็นแล้วทำงานช้ากว่า

ปัญหานี้เกิดจากคอมพิวเตอร์เชื่อมต่อไม่ได้กับที่อยู่สำหรับตรวจสอบ Certificate Trust List (CTL):

https://ctldl.windowsupdate.com/msdownload/update/v3/static/trustedr/en/disallowedcertstl.cab
https://ctldl.windowsupdate.com/msdownload/update/v3/static/trustedr/en/authrootstl.cab

มักเกิดจากปัญหาเครือข่าย เช่น ตั้งค่า Proxy ผิด

วิธีแก้ไขผ่าน Local Group Policy Editor

  1. กด Win + R พิมพ์ gpedit.msc กด Enter
  2. ไปที่: Computer Configuration > Windows Settings > Security Settings > Public Key Policies
  3. ดับเบิลคลิก Certificate Path Validation Settings
  4. เลือกแท็บ Network Retrieval
  5. ติ๊ก Define these policy settings
  6. เอาติ๊กออกจาก Automatically update certificates in the Microsoft Root Certificate Program (recommended)
  7. คลิก Apply > OK

ปิด Group Policy Editor แล้วทดสอบอีกครั้ง