From: x1 Date: 2005-08-31T11:41:39+09:00 Subject: Re: win32ole, adsi and computer info ------=_Part_338_29078610.1125456096886 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Same here... I'm def interested! On 8/30/05, dave.burt@gmail.com wrote: >=20 > Hi Dan, >=20 > Your variable, schema, is an IADsClass representing the class of adsi > (a Domain) - it has methods MandatoryProperties (empty) and > OptionalProperties (useful). >=20 > And there's the long way: >=20 > You can use obj.Class (or cLaSs or any other case variation from class, > which is a Ruby method) or obj.invoke("class") to find out what adsi's > class is. (i.e. "Computer") >=20 > Then you can find the class in the list here: >=20 > http://msdn.microsoft.com/library/en-us/adsi/adsi/adsi_objects_of_winnt.a= sp >=20 > Then you can follow the links to the documentation on each of the > interfaces the class. (For Computer: IADs, > IADsComputer, > IADsComputerOperations, > IADsContainer, > IADsPropertyList) >=20 > But that documentation is useful. >=20 > User objects are meant to have a LoginWorkstations property and a > SeeAlso; both of these seem not to work for me; I get "The directory > property cannot be found in the cache." >=20 > Session objects should be obtainable from a "LanmanServer" or > fso =3D WIN32OLE.connect("WinNT://computer_name/LanmanServer") > ss =3D fso.Sessions > That much works, but I can't get anything useful out of ss using each. > The Sessions contained in that collection should have Computer and User > properties. Maybe I don't have sufficient priveleges on the domain to > get this info (I'm only a developer here). >=20 > If you get it to work, please let me know. >=20 > Cheers, > Dave >=20 >=20 > ------=_Part_338_29078610.1125456096886--