1.    13 Jul 2017 #1
    Join Date : May 2016
    Posts : 7
    Windows 10 & Ubuntu Studio

    BCDedit says: "The set command specified is not valid"


    I am using Windows PowerShell (Admin).
    My command line is this: "bcdedit /set {bootmgr} path \EFI\ubuntu\shimx64.efi"
    I had used this exact command line before and it did work.
    Now it says "The set command specified is not valid". It makes no sense.
    So I am suspecting that bcdedit cannot find the shimx64.efi.
    I found where exactly the shimx64.efi is found.
    In the 1st partition of disk 2. It's flagged "boot, esp". Is it possible that bcdedit is only looking in its own disk (#1) ? If so, are there command line parameters that would allow me to specify on what disk to search? Or is that shimx64.efi file supposed to be in disk 1 too?
    I hope this is clear enough.

    Hardware: Acer Predator 710 Desktop
      My ComputerSystem Spec
  2.    13 Jul 2017 #2
    Join Date : Jul 2015
    Posts : 3,694
    10 Pro

    The command is correct. Try running it in Administrator: Command Prompt

    Powershell
    Code:
    Windows PowerShell
    Copyright (C) 2016 Microsoft Corporation. All rights reserved.
    
    PS C:\Windows\system32> bcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi
    The set command specified is not valid.
    Run "bcdedit /?" for command line assistance.
    The parameter is incorrect.
    PS C:\Windows\system32>
    CMD prompt
    Code:
    Microsoft Windows [Version 10.0.15063]
    (c) 2017 Microsoft Corporation. All rights reserved.
    
    C:\Windows\system32>bcdedit /set {bootmgr} path \EFI\refind\refind_x64.efi
    The operation completed successfully.
    
    C:\Windows\system32>
    This thread explains the parsing problems powershell has...

    Adil Hindistan's Technology Blog: PowerShell Gotchas: Enabling Safemode for Windows 8.1 with Bcdedit
      My ComputerSystem Spec
  3.    13 Jul 2017 #3
    Join Date : May 2016
    Posts : 7
    Windows 10 & Ubuntu Studio
    Thread Starter

    Yes, I am using Windows PowerShell (Admin).
    Click image for larger version. 

Name:	wps_admin.PNG 
Views:	19 
Size:	35.5 KB 
ID:	143750
      My ComputerSystem Spec
  4.    13 Jul 2017 #4
    Join Date : Jul 2015
    Posts : 3,694
    10 Pro

    Type cmd to run in command prompt instead of powershell and then re-enter bcdedit command.

    It should then work OK.

    Click image for larger version. 

Name:	Capture.PNG 
Views:	18 
Size:	20.7 KB 
ID:	143752
      My ComputerSystem Spec
  5.    13 Jul 2017 #5
    Join Date : May 2016
    Posts : 7
    Windows 10 & Ubuntu Studio
    Thread Starter

    Well, very much to my surprise... I did work!!!
    Thank you so much for your help
    I will update my records on this right away .

    Do you know if this was due to a recent Windows 10 update, maybe the new Creator's update?
      My ComputerSystem Spec
  6.    13 Jul 2017 #6
    Join Date : Jul 2015
    Posts : 3,694
    10 Pro

    Quote Originally Posted by drpeppercan View Post
    Do you know if this was due to a recent Windows 10 update, maybe the new Creator's update?
    Powershell is the same as it ever was afaik.

    What changed is in the past the + X menu had the cmd prompt by default and in creators update this changed to powershell. Perhaps that was it.

    Most commands work the same in both cmd and PS but some don't...
      My ComputerSystem Spec
  7.    14 Jul 2017 #7
    Join Date : Dec 2015
    California, USA
    Posts : 149
    Windows 10 Pro

    Quote Originally Posted by lx07 View Post
    Powershell is the same as it ever was afaik.

    What changed is in the past the + X menu had the cmd prompt by default and in creators update this changed to powershell. Perhaps that was it.

    Most commands work the same in both cmd and PS but some don't...
    Good to know in general.
      My ComputersSystem Spec

 


Similar Threads
Thread Forum
Solved Context menu now has "Powershell" instead of "Command Prompt"
So I updated to the CU over a week ago, and I noticed an odd change. The "Open command prompt here" option in the shift+right-click context menu has been replaced by "Open Windows Powershell here" instead. Powershell does not work with the apps I...
General Support
I have met my match "file name is not valid" and "no more files"
I'm generally pretty self sufficient on Windows, and have gone 9 years on the same laptop (an Asus M50VM-A1) without issue. Until now. I am receiving "the file name is not valid" and/or "there are no more files" errors any time I try to Save As...
General Support
CMD crashes when running "bcdedit -set TESTSIGNING ON"
To get the driver for an old audio interface to install, I have to run a script which includes the line "bcdedit -set TESTSIGNING ON" so that Windows will accept a modified inf file. This has worked fine on two other machines running Windows 10, but...
Drivers and Hardware
Solved Problem: "Ethernet doesn't have a valid IP configuration" Lenovo
Dear Tenforums users, I have recently encountered some problems wth my relatively new Lenovo IdeaPad laptop; whenever I try to connect to the internet using ethernet it tells me that "Ethernet doesn't have a valid IP configuration" I have the...
Network and Sharing
Solved Default gateway unavailable and "Ethernet" Doesn't have a valid ip con
So I have been able to use my pc fine until the internet loses connection, so I troubleshoot and It says: The default gateway is not available, I had this error a few days ago and managed to fix it by setting my ip to obtain automatically, I tried...
Network and Sharing
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 11:26.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums