Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bcdedit : the term is not recognized. #9

Closed
benarla opened this issue Feb 10, 2020 · 6 comments
Closed

bcdedit : the term is not recognized. #9

benarla opened this issue Feb 10, 2020 · 6 comments

Comments

@benarla
Copy link

benarla commented Feb 10, 2020

Hi man, thanks for your tool. I would love to use it but i have a problem while trying to install any distro in dual boot, i get this error message on the powershell window that opens with the app. I tried to do a sfc /scannow but it doesn't solves my problem. I have a fresh windows install.

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:401 char:9

  •     bcdedit /export "${global:tunic_dir}\bcd-before.bak" | out-nu ...
    
  •     ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:408 char:9

  •     bcdedit /delete "$osloader" /cleanup /f | out-null
    
  •     ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:410 char:18

  • $osloader = (bcdedit /copy '{bootmgr}' /d ubuntu).replace('The en ...
    
  •              ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:411 char:5

  • bcdedit /set         "$osloader" device "partition=$efi" | out-nu ...
    
  • ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:416 char:9

  •     bcdedit /set         "$osloader" path "\EFI\BOOT\grubx64.efi" ...
    
  •     ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:418 char:5

  • bcdedit /set         "$osloader" description "Tunic Linux Install ...
    
  • ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:419 char:5

  • bcdedit /deletevalue "$osloader" locale | out-null
    
  • ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:420 char:5

  • bcdedit /deletevalue "$osloader" inherit | out-null
    
  • ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:421 char:5

  • bcdedit /deletevalue "$osloader" default | out-null
    
  • ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:422 char:5

  • bcdedit /deletevalue "$osloader" resumeobject | out-null
    
  • ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:423 char:5

  • bcdedit /deletevalue "$osloader" displayorder | out-null
    
  • ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:424 char:5

  • bcdedit /deletevalue "$osloader" toolsdisplayorder | out-null
    
  • ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:425 char:5

  • bcdedit /deletevalue "$osloader" timeout | out-null
    
  • ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:426 char:5

  • bcdedit /set '{fwbootmgr}' displayorder "$osloader" /addfirst | o ...
    
  • ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException

bcdedit : The term 'bcdedit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At C:\Users\benji\AppData\Local\Temp\Tunic\tunic.ps1:434 char:5

  • bcdedit /export "${global:tunic_dir}\bcd-grub.bak" | out-null
    
  • ~~~~~~~
    
    • CategoryInfo : ObjectNotFound: (bcdedit:String) [], CommandNotFoundException
    • FullyQualifiedErrorId : CommandNotFoundException
@benarla
Copy link
Author

benarla commented Feb 10, 2020

also i always get a c = a number that changes everytime and then false just under it when i open the app

@mikeslattery
Copy link
Owner

What version of Windows are you using?
Does this file exist? C:\Windows\System32\bcdedit.exe

@benarla
Copy link
Author

benarla commented Feb 11, 2020

I'm on windows 10 pro 1909 and yes i do have this file

@mikeslattery
Copy link
Owner

If you launch from "Windows PowerShell" instead of "Windows Powershell (x86)" you shouldn't have this issue. Or you can launch it directly from C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe.

Details

https://stackoverflow.com/questions/28040321/powershell-cant-understand-bcdedit
https://superuser.com/questions/831336/bcdedit-exe-is-not-recognized-win-8-1

bcdedit.exe is not accessible in the PATH from 32 bit Powershell, but is from 64 bit.

I will have Tunic check for this and display a pop-up warning and relaunch tunic in a separate 64 bit powershell process.

@benarla
Copy link
Author

benarla commented Feb 12, 2020

well nice thank you very much. I don't know how to do it so i will wait for your fix to be implemented in a release

@mikeslattery
Copy link
Owner

It will likely be released this weekend or Monday. Or, if you don't want to wait, you can download and extract a .zip of the source and run tunic.ps1 from powershell:
https://codeload.github.com/mikeslattery/tunic/zip/develop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants