VBScript in IE

Status
Not open for further replies.

nbarwig

Seniorius Lurkius
1
I've created a VBscript that will connecto to a wbem source using the following code:

Set Locator = CreateObject("WbemScripting.SWbemLocator")
Set ServerConnect = Locator.ConnectServer SMSServer, "root\sms\site_"& SiteCode)

Within a VBS file it works fine, but when I place this code within <SCRIPT Language="VBScript"></SCRIPT> tags in an HTML document i recieve an ActiveX can't create Object: 'WbemScripting.SWbemLocator' error.

~Nick :confused:
 
Status
Not open for further replies.