4.6 Get a Property: Get the Enabled Property of the defaultDocument Section

 var adminManager = WScript.CreateObject( "Microsoft.ApplicationHost.Ad
 minManager" );
 var configSection = adminManager.GetAdminSection( "system.webServer/de
 faultDocument", "MACHINE/WEBROOT/APPHOST" );
 var isEnabled = configSection.Properties.Item( "enabled" ).Value;