using WMI interface in VC++ can we do these in IIS7 please provide any sample code is avialable in VC++ hr =pLocator->ConnectServer( L"root\\WebAdministration", NULL, NULL, NULL, WBEM_FLAG_CONNECT_USE_MAX_WAIT, NULL, NULL, &pService ); 1.List all web sites name and its index Please privide WQL "SELECT * from className" 2.Create new web site 3.Create Appliction pool 4.create virtual directory 5. Map the virtual dirctory and Application pool 6. set the port binding 7. Asp .net enabled in application pool 8. Change .net version to 2.0., if version is greater than 2.0 9. Machine config equivalent