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 (ใช้ได้ทันที)
- Win+I > Personalization > Taskbar
- เปิด Replace Command Prompt with Windows PowerShell in the menu when I right-click the start button or press Windows key + X
- ตอนกด Win+X หรือคลิกขวา Start จะเห็น PowerShell แทน CMD
วิธี 2: สร้าง Shortcut ใหม่ (หาก Error "Windows cannot find... Windows Powershell.lnk")
- File Explorer > ไป
C:\Windows\System32\WindowsPowerShell\v1.0 - หา powershell.exe > คลิกขวา > Create shortcut
- คลิก Yes (สร้างบน Desktop)
- Cut Shortcut บน Desktop > Paste ไปที่:
C:\Users\%username%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Windows PowerShell - หมายเหตุ: หากไม่เห็น AppData > View > ติ๊ก Hidden items
วิธี 3: สลับ User Account คัดลอก Shortcut กลับมา
- สร้าง User ใหม่ (Admin) > Sign in
- ไปโฟลเดอร์ PowerShell เดียวกัน > Copy ไฟล์ทั้ง 4 ไฟล์ (.lnk) ไป USB/Drive D/E
- Sign in กลับ User เดิมที่มีปัญหา
- Paste ไฟล์ 4 ไฟล์ กลับไปที่โฟลเดอร์ PowerShell เดิม
วิธี 4: Reinstall PowerShell (ท้ายที่สุด)
หาก Error "Windows cannot find 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe'"
- ไป GitHub PowerShell Releases
- ดาวน์โหลด: PowerShell-7.x.x-win-x64.msi (64-bit) หรือ x86.msi (32-bit)
- รันติดตั้งตามคำแนะนำ
- หรือดาวน์โหลด 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 พร้อมลิงก์ดาวน์โหลด