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

แก้ Windows PowerShell หายจาก Start Menu Windows 10

Windows PowerShell หายจาก Start Menu / Right-click Start แก้ยังไง

PowerShell เป็น Command-line Shell อันทรงพลัง ใช้แทน Command Prompt ได้ หากหายจากเมนู Start หรือ Right-click Start ให้ลอง 4 วิธีนี้

4 วิธีแก้ PowerShell Missing from Start Menu

วิธี 1: เปลี่ยน Command Prompt เป็น PowerShell ในเมนู Win+X (ใช้ได้ทันที)

  1. Win+I > Personalization > Taskbar
  2. เปิด Replace Command Prompt with Windows PowerShell in the menu when I right-click the start button or press Windows key + X
  3. ตอนกด Win+X หรือคลิกขวา Start จะเห็น PowerShell แทน CMD

วิธี 2: สร้าง Shortcut ใหม่ (หาก Error "Windows cannot find... Windows Powershell.lnk")

  1. File Explorer > ไป C:\Windows\System32\WindowsPowerShell\v1.0
  2. หา powershell.exe > คลิกขวา > Create shortcut
  3. คลิก Yes (สร้างบน Desktop)
  4. Cut Shortcut บน Desktop > Paste ไปที่: C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell
  5. หมายเหตุ: หากไม่เห็น AppData > View > ติ๊ก Hidden items

วิธี 3: สลับ User Account คัดลอก Shortcut กลับมา

  1. สร้าง User ใหม่ (Admin) > Sign in
  2. ไปโฟลเดอร์ PowerShell เดียวกัน > Copy ไฟล์ทั้ง 4 ไฟล์ (.lnk) ไป USB/Drive D/E
  3. Sign in กลับ User เดิมที่มีปัญหา
  4. Paste ไฟล์ 4 ไฟล์ กลับไปที่โฟลเดอร์ PowerShell เดิม

วิธี 4: Reinstall PowerShell (ท้ายที่สุด)

หาก Error "Windows cannot find 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'"

  1. ไป GitHub PowerShell Releases
  2. ดาวน์โหลด: PowerShell-7.x.x-win-x64.msi (64-bit) หรือ x86.msi (32-bit)
  3. รันติดตั้งตามคำแนะนำ
  4. หรือดาวน์โหลด Windows PowerShell 5.1 จาก Microsoft Download Center

สรุป

PowerShell หายจาก Start Menu แก้ 4 วิธี: 1) เปิด Setting แทน CMD ใน Win+X 2) สร้าง Shortcut ใหม่จาก System32 3) Copy จาก User อื่น 4) Reinstall จาก GitHub/Microsoft พร้อมลิงก์ดาวน์โหลด