hello i have the same code in VBscript end in Javascript. in VBScript
everithing is ok but in javascript i can't access to the server. any
suggest?

VBScript
......
Set Locator = CreateObject("WbemScripting.SWbemLocator")

Set Service = Locator.ConnectServer( server,
"root\SMS\site_XXX","DOMAIN\administrator","password")
Set Users = Service.ExecQuery("Select * From SMS_R_User WHERE Name LIKE ""%"
+ username + "%""")
.......


JavaScript
.................

var Locator = new ActiveXObject("WbemScripting.SWbemLocator");
var Service =
Locator.ConnectServer("server","root\SMS\site_XXX","DOMAIN\administrator","p
assword");
var Users = Service.ExecQuery("Select * From SMS_R_User WHERE Name LIKE ""%"
+ username + "%""");
-->
..................

Re: unable to access by Torgeir

Torgeir
Sun Mar 13 11:18:02 CST 2005


Multipost; response in microsoft.public.scripting.jscript


What is the accepted way to share a message across multiple newsgroups?
http://smjg.port5.com/faqs/usenet/xpost.html

and

Multiposting vs Crossposting
http://www.blakjak.demon.co.uk/mul_crss.htm

and

Please don't multi-post.
http://www.aspfaq.com/etiquette.asp?id=5003




--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx