28 Windows Management Instrumentation
instance of __InstanceProviderRegistration
{
Provider = $Q;
SupportsGet = TRUE;
SupportsPut = TRUE;
SupportsDelete = TRUE;
SupportsEnumeration = TRUE;
QuerySupportLevels = {"WQL:UnarySelect"};
};
instance of __MethodProviderRegistration
{
Provider = $Q;
};
[Dynamic, Provider ("DellWMI")]
class Dell_System_Summary
{
[read, key] uint32 DellInstanceID;
[read, write] string AssetTag;
[read] datetime BIOSDate;
[read] sint32 ProcessorSpeed;
[read] string BiosVersion;
[read] string ProcessorType;
[read] string ServiceTag;
[read] string SystemDescription;
[read] string SystemVendor;
};
WMI Scripts
WMI provides a scripting interface. Using VBScript or JScript, you can write
scripts that connect to WMI services locally or remotely, retrieve information,
or execute methods. Because OMCI is implemented through WMI, most
OMCI tasks can be scripted. This section provides sample VBScript scripts as
examples only.
NOTE: To connect remotely to WMI services, you must have administrative rights
for both the local and the remotesystems.