Failure while accessing Bcd using wmic
- From: Kashif Memon <kashifrmemon@xxxxxxxxx>
- Date: Wed, 25 Apr 2012 16:11:51 -0700 (PDT)
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.
.