so i can write bcd commands in a powershell script as if i were in a cmd prompt, for example:
bcdedit /default '{current}'
however i need a script that does this:
bcdedit /default '{current}'
bcdedit /set '{otherboot}' description "my description"
if it didnt do that, it would be the other way around:
bcdedit /default '{otherboot}'
bcdedit /set '{current}' description "my description"
what i need to do is find the identifier of the other boot in powershell and im not sure how. all google searches say to do this:
$bcdStore=gwmi -name root\wmi -list bcdstore -enableall
$bcdStore|gm
$result=$bcdStore.OpenStore("") # can also use explicit file name.
$store=$result.Store
but i have no idea how to use the store once i have it and this seems a little too complicated. i mean there should be an easier way... no?
Team!
I`am wrote the BCDEdit parser. I think it will be usefull.