using getobject to get a list of users from an windows domai

I’m trying to use te below code to get a list of users and user groups from the current windows domain. But get the error: reference error getobject is not defined. Anyone know what to do?


bjDomain = GetObject(“WinNT://mydomain”)
objDomain.Filter = Array(“User”)

for (var objSAMObject = new Enumerator(objDomain); ! objSAMObject.atEnd(); objSAMObject.moveNext())
{

for (var ObjGroup = new Enumerator(objSAMObject.Groups); ! ObjGroup.atEnd(); ObjGroup.moveNext())
{

plugins.dialogs.showInfoDialog( “”, objSAMObject.Name + " " + ObjGroup.Name, button1, [button2], [buttonN])
}
}