当我试图在CMD中运行时,bcdedit命令是工作的。当我尝试在PowerShell中运行它时,我得到了以下内容:The term 'bcdedit' is not recognized as the name of a cmdlet,但在手册和教程中,bcdedit在PowerShell中工作得很好。为什么我的PowerShell不认识bcdedit
系统: Windows 7 x64 SP3
发布于 2015-01-20 08:37:20
有两个版本的powershell.exe,一个32位和一个64位.
在32位版本中,路径C:\windows\system32 32实际上引用了C:\windows\SysWOW64 64。
bcdedit.exe只存在于“真实”64位system32中,无法在32位powershell控制台中找到。
要确定正在运行的powershell的哪个版本,可以运行以下命令:
PS C:\> [intptr]::Size
4在32位控制台上,大小为4,在64位控制台上,大小为8。
https://stackoverflow.com/questions/28040321
复制相似问题