Solved

Unknown properties for objects (in particular DHCPOBJS.DLL)

Posted on 2004-10-14
9
494 Views
Last Modified: 2011-10-03

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
Comment
Question by:blueivy
  • 4
  • 2
  • 2
  • +1
9 Comments
 
LVL 16

Assisted Solution

by:jimbobmcgee
jimbobmcgee earned 100 total points
ID: 12308953
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
 
LVL 1

Author Comment

by:blueivy
ID: 12308966
I'm actually using VB Script (should have said!) .... I assume there is a freeware Object Browser?
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 12308976
Windows 2000 Server Resource Kit MS included the DHCPOBJS.DLL and .CHM
(Documentation) which will allow you to access the DHCP server information
0
 
LVL 1

Author Comment

by:blueivy
ID: 12308998

This is the documentation I've got (and how I got DHCPOBJS.DLL). Microsoft's documentation is rubbish. Hence my question.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 48

Expert Comment

by:Mikal613
ID: 12309047
sorry i guess play with it  ;)
0
 
LVL 1

Author Comment

by:blueivy
ID: 12309105
Difficult when I don't know what the properties are! :-)
0
 
LVL 32

Accepted Solution

by:
Erick37 earned 400 total points
ID: 12311397
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
 
LVL 32

Expert Comment

by:Erick37
ID: 12311461
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
 
LVL 1

Author Comment

by:blueivy
ID: 12317389
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now