【问题标题】:Powershell cant understand "bcdedit"Powershell 无法理解“bcdedit”
【发布时间】:2015-01-20 08:04:50
【问题描述】:

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

系统:Windows 7 x64 SP3

【问题讨论】:

  • 您确定您没有遇到 x64 CMD 与 x86 PowerShell 的问题吗? (反之亦然)

标签: powershell bcdedit


【解决方案1】:

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。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-02-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多