勇芳软件工作室.汉化:  Windows Management Instrumentation > Scripting API for WMI > Scripting API Objects >

SWbemLocator

Previous pageReturn to chapter overviewNext page

您可以使用SWbemLocator对象的方法来获取表示与本地计算机或远程主机上的命名空间的连接的SWbemServices对象。然后,您可以使用SWbemServices对象的方法来访问WMI。该对象可以由VBScript CreateObject调用创建。

 

方法

 

SWbemLocator对象定义了以下方法。

 

方法

描述

ConnectServer

连接到指定计算机上的WMI。

 

属性

 

SWbemLocator对象定义了以下属性。

 

属性

描述

安全_

用于读取或更改安全设置。

 

要求

 

客户

需要Windows Vista,Windows XP,Windows 2000 Professional,Windows NT Workstation 4.0 SP4及更高版本,Windows Me,Windows 98或Windows 95 OSR2及更高版本。

服务器

需要Windows Server 2008,Windows Server 2003,Windows 2000 Server或Windows NT Server 4.0 SP4及更高版本。

类型库

使用Wbemdisp.tlb。

DLL

需要Wbemdisp.dll。