oohhhh why wont this MS script work

  • Thread starter Thread starter Harry Hudini
  • Start date Start date
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]
 
I dont know what line its occuring on, the error is reported to back to the
command line
 
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
 
Back
Top