Click here to Skip to main content
15,891,943 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

i am facing a problem ,

My code
C#
ManagementObject classInstance = 
                    new ManagementObject("root\\MicrosoftDNS",                     "MicrosoftDNS_Zone.ContainerName='lemlab.local',DnsServerName='lab-lem-dc-01.lemlab.local',Name='lemlab.local'",
                    null);

// Execute the method and obtain the return values.
ManagementBaseObject outParams = 
                    classInstance.InvokeMethod("ForceRefresh", null, null);

while using this method i am getting
SWbemServicesEx: Generic failure" error, i just tried using WMI code creator 

how to make this work??

Thanks
Posted
Updated 1-Jan-12 22:04pm
v2
Comments
arshad alam 18-Sep-12 10:41am    
what do you want to do? can you explain the requirement

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



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