大网数据广告活动
性能与资源

Command prompt and PowerShell don't start

· 52CE 我爱测

Command prompt and PowerShell don't start after in-place upgrade of Windows 10 S to Professional, Education, or Enterprise edition.

This article provides a solution to an issue where Command prompt and PowerShell don't open after in-place upgrade of Windows 10 S.

Applies to:   Windows 10, version 1809
Original KB number:   4019568

Symptom

Windows 10 S can be upgraded to Windows 10 Pro, Windows 10 Enterprise, or Windows 10 Education by using various methods. For example:

  • Manually entering a product key
  • Using Microsoft Store for Business
  • Purchasing a license from the Microsoft Store
  • Using installation media (in-place upgrade)

For more information, see Windows 10 edition upgrade Windows 10 edition upgrade.
After you do an in-place upgrade of Windows 10 S by using Setup.exe from Windows 10 installation media, when you open a command prompt, PowerShell, or any Win32 application, you may receive the following error message:
Your organization used Device Guard to block this app C:\Windows\System32\cmd.exe

Contact your support person for more info.

Cause

This issue occurs because the policy that allows Windows 10 S to control Win32 applications has not cleared.

Resolution

To resolve this issue, restart the computer. You may have to restart two or three times to clear this policy.

Reference

For more information about what is blocked in Windows 10 S, see Planning a Windows 10 in S mode deployment.

Data collection

If you need assistance from Microsoft support, we recommend you collect the information by following the steps mentioned in Gather information by using TSS for User Experience issues.

Source: Microsoft Learn / IT Pro troubleshooting by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / IT Pro troubleshooting
适用范围
- Supported versions of Windows Client · Source date 02/12/2026
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。