I am getting an error when I try to access the EnumerateObjects method of the BcdStore class using wmic.
I initially ran the GetSystemDisk method to see that I can access the BcdStore (see below). This worked fine.
______________ cmd window output begins __________________
C:>wmic /namespace:\root\wmi class BcdStore call GetSystemDisk
Executing (BcdStore)->GetSystemDisk()
Method execution successful.
Out Parameters:
instance of __PARAMETERS
{
Disk = "\\Device\\Harddisk0\\DR0"; ReturnValue = TRUE;
};
______________ cmd window output ends __________________
Then I ran the EnumerateObjects method, but got a failure, please see below. The different versions are just different variations of how to pass the arguments to the method, But this didn't work.
______________ cmd window output begins __________________
C:>wmic /namespace:\root\wmi class BcdStore call EnumerateObjects 10200003
Executing (BcdStore)->EnumerateObjects()
ERROR:
Description = Invalid method Parameter(s)
C:>wmic /namespace:\root\wmi class BcdStore call EnumerateObjects Type=10200003
Executing (BcdStore)->EnumerateObjects()
ERROR:
Description = Invalid method Parameter(s)
C:>wmic /namespace:\root\wmi class BcdStore call EnumerateObjects Type="H10200003"
ERROR:
Description = Type mismatch.
C:>wmic /namespace:\root\wmi class BcdStore call EnumerateObjects 0x10200003
ERROR:
Description = Type mismatch.
______________ cmd window output ends __________________
Any help would be appreciated.