I have this in my script, but get an error saying:
"Automation server can't create Object".
Does anyone know what I should do to make this work correctly? My
workstation is Win2K Professional, the IE browser says it's 6.0, and
my WSH version is 5.6.
Thanks.
Gurgen.
"Frank Huddleston" <Frank.Hu...@brooks.af.mil> wrote in message
news:db089bff.0112...@posting.google.com...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Whether you use JScript's new ActiveXObject() or VBScript's CreateObject() or whether you get the prompt or the failure, the issues are still the same...
Q195826 - PRB: CreateObject Fails from Client-Side Scripts
http://support.microsoft.com/support/kb/articles/Q195/8/26.ASP
Or you can simply use HTAs instead - as simple as saving the file with .hta instead of .htm as the extension. .hta files are hosted by mshta.exe rather than iexplore.exe, and have a security model comparable to a conventional Windows desktop application. Of course accepting and executing an HTA is also up to the end user...
--
Michael Harris
Microsoft.MVP.Scripting
--
"Frank Huddleston" <Frank.Hu...@brooks.af.mil> wrote in message news:db089bff.0112...@posting.google.com...
function connectComputer( computerName ) {
WshShell = new ActiveXObject("WScript.Shell");
WbemLocator = WshShell.CreateObject("WbemScripting.SWbemLocator");
WbemService = WbemLocator.ConnectServer(computerName);
}
The current error is:
Object doesn't support this property or method.
Gurgen.
"Gurgen" <gur...@bellatlantic.net> wrote in message
news:u0Au4xbgBHA.2496@tkmsftngp03...
Just use new ActiveXObject...
WbemLocator = new ActiveXObject("WbemScripting.SWbemLocator");
--
Michael Harris
Microsoft.MVP.Scripting
"Frank Huddleston" <frank.hu...@brooks.af.mil> wrote in message news:#u4Dn2cgBHA.1884@tkmsftngp04...
Frank Huddleston