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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTA to query AD and DHCP

Status
Not open for further replies.

skar

MIS
Mar 21, 2001
37
GB
Hi All,

This is for a Windows setup using AD.

I'm using VBscript in a HTA to write a small app that will allow admins a quick way to view a sites DHCP server, list all the scopes and edit the DNS servers issued out.

Its coming on quite well and I'm around 80% done. But I have this gut feeling I'm doing it the wrong and hard way.

The first screen shows a drop down list of all the sites. Taken direct from AD. Select a site and it will then grab the information needed to populate an HTML table showing all the scopes the sites DHCP server has. Including what DNS servers are currently issued out. Next to each scope is an edit button. When this is clicked a new window opens so you can then edit that scope. What I want to know is, how would you go about opening up a new window so that you can pass data back and forth? Also, how about a final window opened from the second window?

I have done it, but OMFG... my head hurts as its not pretty and formatting is a nightmare. But I'm now having problems passing data around and am writing it out to text files to read back in.

So, over to you guys and girls to show me the error of my ways. If you really want to see code, then please ask. I wont post it now as it really is a mess.

Thanks in advance.
 
Im using InnerHTML to clear the text areas and redraw new tables. Keeping it all inside the single HTA until the final warning which is a popup. But a single window I can work with. :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top