Windows 10 Anyone knows how to open a system store with vbs from EFI ISO windows 10?

  • Thread starter Thread starter Zach drh
  • Start date Start date
Z

Zach drh

Guest
Hello

I Create EFI ISO windows 10 with ADK/oscdimg.

From the "sources\boot.wim\Windows\System32\startnet.cmd" I call vb script using WMI provider API to open an empty BCD store :

Set BcdStoreClass = GetObject("winmgmts:\\.\root\wmi:BcdStore")
const bootMgrId="{9dea862c-5cdd-4e70-acc1-f32b344d4795}"
const globalSettingsId="{7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}"
const booLdrSettingsId="{6efb52bf-1766-41db-a6b3-0ee5eff72bd7}"
bootLdrId=Left(CreateObject("Scriptlet.TypeLib").Guid,38)
storeFile=""
'Create store
if not BcdStoreClass.CreateStore(storeFile) then
errHandler "Couldn't Create Store!"
end if

if not BcdStoreClass.OpenStore("", objStore) then
errHandler "Couldn't open the boot manager object!"
end if

I can't openStore with "Couldn't open the boot manager object!" as an error.

BCD file informations from \EFI\Microsoft\boot :

Windows Boot Manager
--------------------
identifier {9dea862c-5cdd-4e70-acc1-f32b344d4795}
description Windows Boot Manager
locale en-US
inherit {7ea2e1ac-2e61-4728-aaa3-896d9d0a9f0e}
custom:1600007e Yes
default {7619dcc9-fafe-11d9-b411-000476eba25f}
displayorder {7619dcc9-fafe-11d9-b411-000476eba25f}
{ba3ba353-519e-11ea-87d5-0800275f58f8}
{bafccd68-519e-11ea-87d5-0800275f58f8}
{bb5c1bf7-519e-11ea-87d5-0800275f58f8}
toolsdisplayorder {b2721d73-1db4-4c62-bf78-c548a880142d}
timeout 30
Windows Boot Loader
-------------------
identifier {7619dcc9-fafe-11d9-b411-000476eba25f}
device ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
path \efi\microsoft\boot\bootmgfw.efi
description Windows Setup
locale en-US
inherit {6efb52bf-1766-41db-a6b3-0ee5eff72bd7}
isolatedcontext Yes
osdevice ramdisk=[boot]\sources\boot.wim,{7619dcc8-fafe-11d9-b411-000476eba25f}
systemroot \windows
bootmenupolicy Standard
detecthal Yes
winpe Yes
ems No
Windows Boot Loader
-------------------
identifier {ba3ba353-519e-11ea-87d5-0800275f58f8}
device partition=C:
path \Windows\system32\winload.exe
description Microsoft Windows
locale en-US
osdevice partition=C:
systemroot \Windows
Windows Boot Loader
-------------------
identifier {bafccd68-519e-11ea-87d5-0800275f58f8}
device partition=C:
path \Windows\system32\winload.exe
description Microsoft Windows
locale en-US
osdevice partition=C:
systemroot \Windows

Windows Boot Loader
-------------------
identifier {bb5c1bf7-519e-11ea-87d5-0800275f58f8}
device partition=C:
path \Windows\system32\winload.exe
description Microsoft Windows
locale en-US
osdevice partition=C:
systemroot \Windows



someone can help me ?

Best Regards!

More...
 

Similar threads

Q
Replies
0
Views
177
questionsformicrosoftproducts
Q
Q
Replies
0
Views
125
questionsformicrosoftproducts
Q
Back
Top