I had thought about writing the files with CF instead of using the scripting object, but to me there seems like less of a chance of something going wrong with using the WMI instead of writing the files (hopefully correct), editing the registry and then restarting the service. With the script object all of this gets done for me, don't think the DNS service even needs to get reset.
Bernd VanSkiver [EMAIL PROTECTED] ColdFusion Developer ----- Original Message ----- From: "Jon Hall" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Thursday, January 31, 2002 2:37 PM Subject: Re: scripting windows 2000 dns > In addition to cfexecute, you could just use cfobject to interact with the > DNS provider object. I can't say it would be easy though. You are going to > have to rely on the docs if you don't know vbs pretty well. I know a little, > but that code is nasty :) > > The other possibility if you need to use CF, is just to figure out how to > recreate the zone files in CF, write them out, create the registry entries, > then restart the DNS server. The zone files themselves are just plain > text... > > jon > ----- Original Message ----- > From: "Bernd VanSkiver" <[EMAIL PROTECTED]> > To: "CF-Talk" <[EMAIL PROTECTED]> > Sent: Thursday, January 31, 2002 2:35 PM > Subject: scripting windows 2000 dns > > > > I am trying to use WMI to manage DNS entries in a Windows 2000 DNS server. > > I have some VBS files that I can do this with from the command prompt, but > > am not sure how to run them with ColdFusion. Here is a link to the > article > > I am looking at for instructions on how to accomplish this task: > > http://www.iisfaq.com/Articles/319/. Just trying to automatially create, > > modify, and delete dns entries with ColdFusion, if anyone knows of a > better > > way to do this then using the VBS files I mentioned then please let me > know. > > > > Bernd VanSkiver > > [EMAIL PROTECTED] > > ColdFusion Developer > > > ______________________________________________________________________ Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusiona FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

