Accessing BCDBoot.exe from PowerShell

 

This one was driving me crazy for a little while…

The term 'bcdboot' 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 line:1 char:8
+ bcdboot <<<<
    + CategoryInfo          : ObjectNotFound: (bcdboot:String) [], CommandNotFoundException

I wondered whether it was the case with all System32 binaries and security, so some Googling turned up: http://social.technet.microsoft.com/Forums/en-GB/configmgradminconsole/thread/f1662e6e-5b15-450a-bca1-f3e2f99b7580

So if you would like to access bcdboot from PowerShell, and for my current script I definitely do, then you can use:

C:\Windows\sysnative\bcdboot

image

Irritating, but a relief to find its possible. Happy hacking.

blog comments powered by Disqus