Kashif Memon
unread,Apr 25, 2012, 7:11:51 PM4/25/12You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
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
Type="&H10200003"
Executing (BcdStore)->EnumerateObjects()
ERROR:
Description = Invalid method Parameter(s)
________________________ cmd window output begins
_________________________________
Any help would be appreciated.