BCDEdit错误,参数不正确。

6

我正试图将我的SSD添加到启动菜单中。我按照Microsoft提供的说明进行操作。但我一直收到同样的错误提示。

这个命令给出了错误提示:

bcdedit /copy {current} /d "mySSD"

然后我运行了bcdedit /v命令来查看标识符(identifier)的GUID。但是这条命令也出现了同样的错误:

bcdedit /copy {c562ef5b-d0f6-11e8-bfb5-e86a64139893} /d "mySSD"

错误:

The copy command specified is not valid.
Run "bcdedit /?" for command line assistance.
The parameter is incorrect.

我该怎么做?


bcdedit /v 命令的输出结果如下:

Windows Boot Manager
--------------------
identifier              {9dea862c-5cdd-4e70-accb-f32b344d4795}
device                  partition=\Device\HarddiskVolume1
path                    \EFI\Microsoft\Boot\bootmgfw.efi
description             Windows Boot Manager
locale                  en-US
inherit                 {7ea2e1ac-2e61-4728-aaab-896d9d0a9f0e}
default                 {c562ef5b-d0f6-11e8-bfb5-e86a64139893}
resumeobject            {c562ef5a-d0f6-11e8-bfb5-e86a64139893}
displayorder            {c562ef5b-d0f6-11e8-bfb5-e86a64139893}
toolsdisplayorder       {b2721d73-1db4-4c62-bf7b-c548a880142d}
timeout                 0

Windows Boot Loader
-------------------
identifier              {c562ef5b-d0f6-11e8-bfb5-e86a64139893}
device                  partition=C:
path                    \Windows\system32\winload.efi
description             Windows 10
locale                  en-US
inherit                 {6efb52bf-1766-41db-a6bb-0ee5eff72bd7}
recoverysequence        {6e6c06d5-d0f4-11e8-addb-e86a64139893}
displaymessageoverride  Recovery
recoveryenabled         Yes
isolatedcontext         Yes
allowedinmemorysettings 0x15000075
osdevice                partition=C:
systemroot              \Windows
resumeobject            {c562ef5a-d0f6-11e8-bfb5-e86a64139893}
nx                      OptIn
bootmenupolicy          Standard
1个回答

12
问题在于这些命令命令提示符中有效,而我是在PowerShell中运行它们。
我在我的提升powershell中运行了cmd,然后它就可以工作了。
或者像Vasily Galkin提到的一样,用单引号括起来包含{}的所有参数,例如: bcdedit /copy '{current}' /d "mySSD"

太棒了!谁能想到这个! - xpt
2
另一个解决方法是将包含 { 或 } 的所有参数用单引号括起来,例如 bcdedit /copy '{current}' /d "mySSD" - Vasily Galkin

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接