I have to connect conduit database using wmi method. I have to connect db that is at remote location. I think there is problem in remote address at first line. In javascript function sync_data it shows a javascript error that Reference error: cant find variable : GetObject .
How to give address for remote db using wmi method. plz anyone can get me out of this problem. thanks in advance..
remote server name is WIN-CMTO5GNUCQ3
function sync_data(){
var wbemServices = GetObject(“winmgmts://WIN-CMTO5GNUCQ3/root/onguard”);
var cardholderSet = wbemServices.InstancesOf(“Lnl_Cardholder”);
for ( var e = new Enumerator( cardholderSet ); !e.atEnd(); e.moveNext() )
{
var cardholder = e.item();
WScript.Echo(cardholder.FirstName + “ “ + cardholder.LastName);
}
alert("hello");
}
0 Replies