0

当我尝试在 CMD 中运行时,bcdedit命令正在工作。当我尝试在 PowerShell 中运行它时,我得到了这个:The term 'bcdedit' is not recognized as the name of a cmdlet 但是在手册和教程bcdedit中在 PowerShell 中运行良好。为什么我的 PowerShell 无法识别bcdedit

系统:Windows 7 x64 SP3

4

1 回答 1

5

powershell.exe 有两个版本,一个是 32 位的,一个是 64 位的。

在 32 位版本中,路径 C:\windows\system32 实际上是指 C:\windows\SysWOW64。

bcdedit.exe 仅存在于“真正的”64 位系统32 中,无法在 32 位 powershell 控制台中找到。

要确定您正在运行哪个版本的 powershell,您可以运行以下命令:

PS C:\> [intptr]::Size
4

在 32 位控制台上,大小为 4,在 64 位控制台上,大小为 8。

于 2015-01-20T08:37:20.590 回答