oohhhh why wont this MS script work

H

Harry Hudini

I have downloaded and pieced together the script at

http://msdn.microsoft.com/library/en-us/dns/dns/dns_wmi_provider_samples_man
aging_dns_zones.asp?frame=true

which allows you to create zones, both primary and secondary, on remote
servers. When I run it using this command line;

cscript dnszones.vbs create secondary forward mydomain.co.uk 192.168.100.251
/s sql1

I get an error that states;

Error 0x1A8 occurred in connecting to server sql1.
Error description: Object required.

I cant find any mention of it, and it happens no matter what server or
domain name i enter in the parameters.

Any ideas why its not working ? I have to use a script as eventually I will
call the various sections from my own script that will update all our dns
servers when a user uses the script to add a domain.

Ideas ?

Olly

--
________________________________________________
ADSSupport.net
http://www.adssupport.net
Dedicated free Active Directory ServicesT support

email: oliver.marshall@[email protected]
 
B

Brian McDermott

Have you installed the DNS provider?

If so, what line is the error occurring?
 
H

Harry Hudini

I dont know what line its occuring on, the error is reported to back to the
command line
 
Joined
Apr 21, 2009
Messages
1
Reaction score
0
The method I used to get this working was to register with the 32-bit version of regsvr32, then run the 32-bit version of cscript:

  • c:\WINDOWS\SysWOW64\regsvr32 prnadmin.dll
  • c:\WINDOWS\SysWOW64\cscript prnmgr.vbs -l
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top