Windows System Software -- Consulting, Training, Development -- Unique Expertise, Guaranteed Results

Home NTDEV
Before Posting...
Please check out the Community Guidelines in the Announcements and Administration Category.

More Info on Driver Writing and Debugging


The free OSR Learning Library has more than 50 articles on a wide variety of topics about writing and debugging device drivers and Minifilters. From introductory level to advanced. All the articles have been recently reviewed and updated, and are written using the clear and definitive style you've come to expect from OSR over the years.


Check out The OSR Learning Library at: https://www.osr.com/osr-learning-library/


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

ZachZach Member Posts: 1
edited February 18 in NTDEV

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!

Comments

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Upcoming OSR Seminars
OSR has suspended in-person seminars due to the Covid-19 outbreak. But, don't miss your training! Attend via the internet instead!
Writing WDF Drivers 7 Dec 2020 LIVE ONLINE
Internals & Software Drivers 25 Jan 2021 LIVE ONLINE
Developing Minifilters 8 March 2021 LIVE ONLINE