Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 510
  • Last Modified:

Unknown properties for objects (in particular DHCPOBJS.DLL)


I am trying to write a script to change the lease time on dozens of DHCP scopes. The only way I coudl see to do this is use the DHCPOBJS.DLL object provided by Microsoft. However the documentation with the DLL is very vey poor and tells me little about the properties of the objects.

Can anybody point me in the direction of some documentation on the properties of the objects within this DLL OR tell me how to find out programatically. Bear in mind I have been searching for this information for almost 3 hours and so far nothing.
0
blueivy
Asked:
blueivy
  • 4
  • 2
  • 2
  • +1
2 Solutions
 
jimbobmcgeeCommented:
This may sound stupid (and I'm sure you've already tried) but can you add a reference to that .DLL in your project?  If so, you can use the Object Browser...

J.
0
 
blueivyAuthor Commented:
I'm actually using VB Script (should have said!) .... I assume there is a freeware Object Browser?
0
 
Mikal613Commented:
Windows 2000 Server Resource Kit MS included the DHCPOBJS.DLL and .CHM
(Documentation) which will allow you to access the DHCP server information
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
blueivyAuthor Commented:

This is the documentation I've got (and how I got DHCPOBJS.DLL). Microsoft's documentation is rubbish. Hence my question.
0
 
Mikal613Commented:
sorry i guess play with it  ;)
0
 
blueivyAuthor Commented:
Difficult when I don't know what the properties are! :-)
0
 
Erick37Commented:
There is an object browser included with MS Office.  
Open Excel or Word, then press ALT+F11 to bring up the Visual Basic for Applications editor.  
From the menu: Tools->References add the name of the DHCP server dll tool you want to view. Press OK.  
Press F2 to bring up the Object Viewer

Hope it helps!
0
 
Erick37Commented:
P.S.  You can also Insert a UserForm to the project in order to write Visual Basic code.  It's a convenient way to test your code using the library.
0
 
blueivyAuthor Commented:
Thanks guys. I've split the points between Erick37 (for your useful tip on the Object Browser) and jimbobmcgee for getting me to look for an Object Browser in the first place.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 4
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now