Users Guide

string BIOSVersion;
[SMS_Report(TRUE), read: ToInstance ToSubClass]
datetime BIOSDate;
[SMS_Report(TRUE), read: ToInstance ToSubClass, key]
string ServiceTag;
[SMS_Report(TRUE), read: ToInstance ToSubClass, write: ToInstance ToSubClass]
string AssetTag;
};
#pragma namespace ("\\\\.\\Root\\cimv2")
//*************************************************************
//*** Registers Framework Provider ***
//*************************************************************
instance of __Win32Provider as $Q
{
Name = "DellWMI";
ClsId = "{a29197b6-5c8d-4278-ae20-e5c14aed1280}";
};
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
WMI 提供了脚本界面。 您可以使用 VBScript Jscript 编写脚本,以本地或远程连接至 WMI 服务、检索信息或执行方法。 由于 OMCI 通过 WMI 实施,大多数 OMCI 任务可以用脚
本编写。 本节仅提供 VBScript 脚本样例作为示例。
以下文本文件包含了样例脚本。 要执行任何脚本,请以 .vbs 为扩展名保存脚本。 在命令提示符中,键入 cscript.exe //nologo <
脚本名称
> 和适当参数。 如果您未指定任何参数,
系统将显示脚本的用法。
l 关闭远程系统
l 重新启动远程系统
l 远程 BIOS 更新
l 在下次重新启动时启用 PXE 启动
l 启用通过 LAN 唤醒
l 检索服务标签、资产标签和 BIOS 修订
l 更改 BIOS 密码
返回目录页面
注:要远程连接 WMI 服务,用户必须同时拥有本地和远程系统的管理权限。
注:示例脚本仅用于示例,未进行测试,且 Dell 未对其作出保证;同时 Dell 拒绝承担任何连接义务。 Dell 对该脚本不提供任何技术支持。 有关 WMI 脚本的详细信息,请参阅相
应的 Microsoft 说明文件。