Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dumping info on objects

Status
Not open for further replies.

TonH

MIS
May 3, 2006
2
NL
Hi,

I'm currently experimenting with a list of workstations in an NT domain with the following code:

Code:
domain_controller = win32net.NetGetDCName (None, None)
domain_name = win32net.NetUserModalsGet (domain_controller, 2)['domain_name']
adsi = win32com.client.Dispatch ("ADsNameSpaces")
nt = adsi.GetObject ("","WinNT:")
result = nt.OpenDSObject ("WinNT://%s" % domain_name, "", "", 0)
result.Filter = ["computer"]

How can I see what methods and variables result contains? I know if I do result.Name I get the domain name returned. But how can I figure out what other options I have?

Regards,

Ton
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top