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

วิธี Reset PowerShell และ Command Prompt กลับสู่ค่าเริ่มต้น

Microsoft อนุญาตให้ปรับแต่ง User Experience ของ Windows Command Prompt และ Windows PowerShell ใน Windows 10 เช่น สี, Font Type, Font Size แต่บางครั้งการปรับแต่งทำให้แอปพลิเคชันบรรทัดคำสั่งทำงานผิดปกติ และยากที่จะ Reset กลับค่าเริ่มต้น เนื่องจากไม่มีปุ่ม Reset my settings

วิธี Reset PowerShell และ Command Prompt กลับสู่ค่าเริ่มต้น

แนะนำสร้าง System Restore Point ก่อน เพื่อ Rollback ได้หากเกิดข้อผิดพลาด

Reset PowerShell เป็นค่าเริ่มต้น

Windows PowerShell มี 2 รุ่นบน Windows 10 x64:

  • Windows PowerShell
  • Windows PowerShell (x86)

Windows 10 x86 จะมีแค่ Windows PowerShell

วิธี Reset: แทนที่ Shortcut ด้วย Default Version ดาวน์โหลด Default Shortcuts จากเซิร์ฟเวอร์เรา (ลิงก์ท้ายบทความ)

ไปที่ Path:

C:\Users\\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell

วิธี Reset PowerShell และ Command Prompt กลับสู่ค่าเริ่มต้น

= บัญชีผู้ใช้ที่ต้องการ Reset

นำ Shortcut จาก Archive มาแทนที่บนเครื่อง

PowerShell กลับสู่ค่าเริ่มต้นแล้ว

Related: PowerShell has stopped working and will not open

Reset Command Prompt เป็นค่าเริ่มต้น

ดาวน์โหลดไฟล์จากเซิร์ฟเวอร์เรา จะได้ไฟล์ .reg

รันไฟล์ หากมี Security Warning เลือก Run > UAC Prompt เลือก Yes > Registry Editor Warning เลือก Yes

วิธี Reset PowerShell และ Command Prompt กลับสู่ค่าเริ่มต้น

จะมีข้อความ Registry Modified > Reboot > CMD กลับค่าเริ่มต้น

หากต้องการทำเอง: Win+R > regedit > Enter > ไปที่:

HKEY_CURRENT_USER\Console

วิธี Reset PowerShell และ Command Prompt กลับสู่ค่าเริ่มต้น

คลิกขวา Folder Console ด้านซ้าย > Delete > Yes ยืนยัน > Reboot > CMD กลับค่าเริ่มต้น

อ่านเพิ่ม: PowerShell has stopped working

เสร็จแล้ว!

วิธี Reset PowerShell และ Command Prompt กลับสู่ค่าเริ่มต้น