เจอ Error "PowerShell.exe is not a Microsoft-Verified App"** เกิดบน Windows 10/11 S Mode ที่อนุญาตให้รันได้แต่ Microsoft Store Apps เท่านั้น
สาเหตุและวิธีแก้
S Mode จำกัดการรัน App เฉพาะที่ Verified โดย Microsoft PowerShell ไม่อยู่ในรายการ (แม้จะเป็นของ Microsoft เอง) วิธีแก้เพียงอย่างเดียวคือ Switch ออกจาก S Mode
Switch ออกจาก S Mode (Personal PC)
- Settings > Update & Security > Activation
- หา Switch to Windows 10/11 Home/Pro > คลิก Go to the Store
- ใน Microsoft Store ค้นหา "Switch out of S mode" > Get > Install
- Restart
Switch ออกจาก S Mode (Enterprise/Managed by IT)
ขอ IT Admin ใช้ Microsoft Intune:
- Intune > Device Configuration > Profiles > Windows 10 and later > Edition Upgrade and Mode Switch
- ตั้งค่า Switch out of S Mode > Deploy
คำถามที่พบบ่อย
- ใช้ Browser อื่นใน S Mode ได้ไหม? ได้ แต่ตั้ง Default ไม่ได้ และ Browser ต้องอยู่ใน Store (ส่วนใหญ่ไม่มี) → ต้องใช้ Edge
- ต้อง Antivirus ใน S Mode ไหม? ต้อง มี Microsoft Defender built-in อยู่แล้ว
- กลับไป S Mode ได้ไหม? ไม่ได้** Switch ออกไปแล้วกลับไม่ได้ ต้องใช้ Standard Version ตลอด
สรุป
PowerShell ต้องการ Full Windows (ไม่ใช่ S Mode) ต้อง Switch Out ผ่าน Store (Personal) หรือ Intune (Enterprise) ไม่มีทางอื่น