Click here to Skip to main content
15,892,537 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi Friends,

i have some issue with creating zone in DNS server using WMI

C#
ManagementPath Path = new ManagementPath("MicrosoftDNS_Zone");

ManagementClass DnsZoneClass = new ManagementClass(scope, Path, null);
ManagementBaseObject InputParams =
DnsZoneClass.GetMethodParameters("CreateZone");
InputParams["ZoneName"] = zoneName;
InputParams["ZoneType"] = zonetype;
InputParams["DsIntegrated"] = dsIntegrated;

This is my partial code works fine..in creating Zones..

The problem is

InputParams["DsIntegrated"] = dsIntegrated;

This Parameter works perfect for "Primary Zone" and not working for "Stub Zone" i am passing true..but still it is set as false.

and i checked with dns server also..the AD check box is not checked.


Please help..it is very important.

share my any link or ideas..related to this.

thanks
Posted
Comments
El_Codero 28-May-12 17:00pm    
Which version of Windows Server are you using?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900