原文来自MSDN Library for Visual Studio 2008 SP1,翻译部分仅为个人观点,想要看更多信息请看MSDN,如有版权问题请联系QQ 643166601,邮件643166601@qq.com
SWbemLocator Object
You can use the methods of the SWbemLocator object to obtain an SWbemServices object that represents a connection to a namespace on either a local computer or a remote host computer.
你可以使用SWbemLocator对象的方法去获得一个SWbemServices对象,它代表一个连接到一个本地计算机或远程主机计算机的命名空间上。
You can then use the methods of the SWbemServices object to access WMI.
你可以使用SWbemServices对象的方法去访问WMI。
This object can be created by the VBScript CreateObject call.
这个对象可以由VBScript创建CreateObject调用。
Methods
The SWbemLocator object defines the following method.
这个SWbemLocator对象定义以下方法
Method Description
ConnectServer
Connects to WMI on the specified computer.
连接到指定计算的WMI。
Properties
The SWbemLocator object has the following property.
这个SWbemLocator对象有以下属性。
Property Description
Security_
Used to read or change the security settings.
用于读取或改变安全设置。
Requirements
Client
Requires Windows Vista, Windows XP, Windows 2000 Professional, Windows NT Workstation 4.0 SP4 and later, Windows Me, Windows 98, or Windows 95 OSR2 and later.
Server
Requires Windows Server 2008, Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0 SP4 and later.
Type Library
Use Wbemdisp.tlb.
DLL
Requires Wbemdisp.dll.
See Also
Scripting API Objects
Send comments about this topic to Microsoft
Build date: 8/15/2007