Contact Info

Crumbtrail

ActiveXperts.com » Administration » Scripts » WMI Performance Counters » JScript

IIsWebDirectorySetting - WMI sample in JScript

The foundations for Manageability in Windows 2019/2012/2008/ and Windows 10/8/7/Vista/XP are Windows Management Instrumentation (WMI; formerly WBEM) and WMI extensions for Windows Driver Model (WDM).

ActiveXperts Network Monitor provides the ability to build monitor check routines based on WMI. ActiveXperts has collected more than a hundred WMI samples. You can use these samples as a base for new check routines you can write yourself.

On this site, you can find many WMI samples.

The IIsWebDirectorySetting WMI class can be used in ActiveXperts Network Monitor to monitor your servers.


IIsWebDirectorySetting

Example(s)

var strComputer = ".";

var objWMIService = GetObject("winmgmts:\\\\" + strComputer + "\\root\\MicrosoftIISv2");
var colItems = objWMIService.ExecQuery("SELECT * FROM IIsWebDirectorySetting", "WQL");

var enumItems = new Enumerator(colItems);

for (; !enumItems.atEnd(); enumItems.moveNext()) {
	var objItem = enumItems.item();
	WScript.Echo("AccessExecute: " + objItem.AccessExecute);
	WScript.Echo("AccessFlags: " + objItem.AccessFlags);
	WScript.Echo("AccessNoPhysicalDir: " + objItem.AccessNoPhysicalDir);
	WScript.Echo("AccessNoRemoteExecute: " + objItem.AccessNoRemoteExecute);
	WScript.Echo("AccessNoRemoteRead: " + objItem.AccessNoRemoteRead);
	WScript.Echo("AccessNoRemoteScript: " + objItem.AccessNoRemoteScript);
	WScript.Echo("AccessNoRemoteWrite: " + objItem.AccessNoRemoteWrite);
	WScript.Echo("AccessRead: " + objItem.AccessRead);
	WScript.Echo("AccessScript: " + objItem.AccessScript);
	WScript.Echo("AccessSource: " + objItem.AccessSource);
	WScript.Echo("AccessSSL: " + objItem.AccessSSL);
	WScript.Echo("AccessSSL128: " + objItem.AccessSSL128);
	WScript.Echo("AccessSSLFlags: " + objItem.AccessSSLFlags);
	WScript.Echo("AccessSSLMapCert: " + objItem.AccessSSLMapCert);
	WScript.Echo("AccessSSLNegotiateCert: " + objItem.AccessSSLNegotiateCert);
	WScript.Echo("AccessSSLRequireCert: " + objItem.AccessSSLRequireCert);
	WScript.Echo("AccessWrite: " + objItem.AccessWrite);
	WScript.Echo("AdminACLBin: " + objItem.AdminACLBin);
	WScript.Echo("AnonymousPasswordSync: " + objItem.AnonymousPasswordSync);
	WScript.Echo("AnonymousUserName: " + objItem.AnonymousUserName);
	WScript.Echo("AnonymousUserPass: " + objItem.AnonymousUserPass);
	WScript.Echo("AppAllowClientDebug: " + objItem.AppAllowClientDebug);
	WScript.Echo("AppAllowDebugging: " + objItem.AppAllowDebugging);
	WScript.Echo("AppFriendlyName: " + objItem.AppFriendlyName);
	WScript.Echo("AppOopRecoverLimit: " + objItem.AppOopRecoverLimit);
	WScript.Echo("AppPoolId: " + objItem.AppPoolId);
	WScript.Echo("AppWamClsid: " + objItem.AppWamClsid);
	WScript.Echo("AspAllowOutOfProcComponents: " + objItem.AspAllowOutOfProcComponents);
	WScript.Echo("AspAllowSessionState: " + objItem.AspAllowSessionState);
	WScript.Echo("AspAppServiceFlags: " + objItem.AspAppServiceFlags);
	WScript.Echo("AspBufferingLimit: " + objItem.AspBufferingLimit);
	WScript.Echo("AspBufferingOn: " + objItem.AspBufferingOn);
	WScript.Echo("AspCalcLineNumber: " + objItem.AspCalcLineNumber);
	WScript.Echo("AspCodepage: " + objItem.AspCodepage);
	WScript.Echo("AspDiskTemplateCacheDirectory: " + objItem.AspDiskTemplateCacheDirectory);
	WScript.Echo("AspEnableApplicationRestart: " + objItem.AspEnableApplicationRestart);
	WScript.Echo("AspEnableAspHtmlFallback: " + objItem.AspEnableAspHtmlFallback);
	WScript.Echo("AspEnableChunkedEncoding: " + objItem.AspEnableChunkedEncoding);
	WScript.Echo("AspEnableParentPaths: " + objItem.AspEnableParentPaths);
	WScript.Echo("AspEnableSxs: " + objItem.AspEnableSxs);
	WScript.Echo("AspEnableTracker: " + objItem.AspEnableTracker);
	WScript.Echo("AspEnableTypelibCache: " + objItem.AspEnableTypelibCache);
	WScript.Echo("AspErrorsToNTLog: " + objItem.AspErrorsToNTLog);
	WScript.Echo("AspExceptionCatchEnable: " + objItem.AspExceptionCatchEnable);
	WScript.Echo("AspExecuteInMTA: " + objItem.AspExecuteInMTA);
	WScript.Echo("AspKeepSessionIDSecure: " + objItem.AspKeepSessionIDSecure);
	WScript.Echo("AspLCID: " + objItem.AspLCID);
	WScript.Echo("AspLogErrorRequests: " + objItem.AspLogErrorRequests);
	WScript.Echo("AspMaxDiskTemplateCacheFiles: " + objItem.AspMaxDiskTemplateCacheFiles);
	WScript.Echo("AspMaxRequestEntityAllowed: " + objItem.AspMaxRequestEntityAllowed);
	WScript.Echo("AspPartitionID: " + objItem.AspPartitionID);
	WScript.Echo("AspProcessorThreadMax: " + objItem.AspProcessorThreadMax);
	WScript.Echo("AspQueueConnectionTestTime: " + objItem.AspQueueConnectionTestTime);
	WScript.Echo("AspQueueTimeout: " + objItem.AspQueueTimeout);
	WScript.Echo("AspRequestQueueMax: " + objItem.AspRequestQueueMax);
	WScript.Echo("AspRunOnEndAnonymously: " + objItem.AspRunOnEndAnonymously);
	WScript.Echo("AspScriptEngineCacheMax: " + objItem.AspScriptEngineCacheMax);
	WScript.Echo("AspScriptErrorMessage: " + objItem.AspScriptErrorMessage);
	WScript.Echo("AspScriptErrorSentToBrowser: " + objItem.AspScriptErrorSentToBrowser);
	WScript.Echo("AspScriptFileCacheSize: " + objItem.AspScriptFileCacheSize);
	WScript.Echo("AspScriptLanguage: " + objItem.AspScriptLanguage);
	WScript.Echo("AspScriptTimeout: " + objItem.AspScriptTimeout);
	WScript.Echo("AspSessionMax: " + objItem.AspSessionMax);
	WScript.Echo("AspSessionTimeout: " + objItem.AspSessionTimeout);
	WScript.Echo("AspSxsName: " + objItem.AspSxsName);
	WScript.Echo("AspTrackThreadingModel: " + objItem.AspTrackThreadingModel);
	WScript.Echo("AspUsePartition: " + objItem.AspUsePartition);
	WScript.Echo("AuthAnonymous: " + objItem.AuthAnonymous);
	WScript.Echo("AuthBasic: " + objItem.AuthBasic);
	WScript.Echo("AuthFlags: " + objItem.AuthFlags);
	WScript.Echo("AuthMD5: " + objItem.AuthMD5);
	WScript.Echo("AuthNTLM: " + objItem.AuthNTLM);
	WScript.Echo("AuthPassport: " + objItem.AuthPassport);
	WScript.Echo("AuthPersistence: " + objItem.AuthPersistence);
	WScript.Echo("AuthPersistSingleRequest: " + objItem.AuthPersistSingleRequest);
	WScript.Echo("AzEnable: " + objItem.AzEnable);
	WScript.Echo("AzImpersonationLevel: " + objItem.AzImpersonationLevel);
	WScript.Echo("AzScopeName: " + objItem.AzScopeName);
	WScript.Echo("AzStoreName: " + objItem.AzStoreName);
	WScript.Echo("CacheControlCustom: " + objItem.CacheControlCustom);
	WScript.Echo("CacheControlMaxAge: " + objItem.CacheControlMaxAge);
	WScript.Echo("CacheControlNoCache: " + objItem.CacheControlNoCache);
	WScript.Echo("CacheISAPI: " + objItem.CacheISAPI);
	WScript.Echo("Caption: " + objItem.Caption);
	WScript.Echo("CGITimeout: " + objItem.CGITimeout);
	WScript.Echo("ContentIndexed: " + objItem.ContentIndexed);
	WScript.Echo("CreateCGIWithNewConsole: " + objItem.CreateCGIWithNewConsole);
	WScript.Echo("CreateProcessAsUser: " + objItem.CreateProcessAsUser);
	WScript.Echo("DefaultDoc: " + objItem.DefaultDoc);
	WScript.Echo("DefaultDocFooter: " + objItem.DefaultDocFooter);
	WScript.Echo("DefaultLogonDomain: " + objItem.DefaultLogonDomain);
	WScript.Echo("Description: " + objItem.Description);
	WScript.Echo("DirBrowseFlags: " + objItem.DirBrowseFlags);
	WScript.Echo("DirBrowseShowDate: " + objItem.DirBrowseShowDate);
	WScript.Echo("DirBrowseShowExtension: " + objItem.DirBrowseShowExtension);
	WScript.Echo("DirBrowseShowLongDate: " + objItem.DirBrowseShowLongDate);
	WScript.Echo("DirBrowseShowSize: " + objItem.DirBrowseShowSize);
	WScript.Echo("DirBrowseShowTime: " + objItem.DirBrowseShowTime);
	WScript.Echo("DisableStaticFileCache: " + objItem.DisableStaticFileCache);
	WScript.Echo("DoDynamicCompression: " + objItem.DoDynamicCompression);
	WScript.Echo("DontLog: " + objItem.DontLog);
	WScript.Echo("DoStaticCompression: " + objItem.DoStaticCompression);
	WScript.Echo("EnableDefaultDoc: " + objItem.EnableDefaultDoc);
	WScript.Echo("EnableDirBrowsing: " + objItem.EnableDirBrowsing);
	WScript.Echo("EnableDocFooter: " + objItem.EnableDocFooter);
	WScript.Echo("EnabledProtocols: " + objItem.EnabledProtocols);
	WScript.Echo("EnableReverseDns: " + objItem.EnableReverseDns);
	WScript.Echo("FrontPageWeb: " + objItem.FrontPageWeb);
	WScript.Echo("HttpCustomHeaders: " + objItem.HttpCustomHeaders);
	WScript.Echo("HttpErrors: " + objItem.HttpErrors);
	WScript.Echo("HttpErrorsExistingResponse: " + objItem.HttpErrorsExistingResponse);
	WScript.Echo("HttpExpires: " + objItem.HttpExpires);
	WScript.Echo("HttpPics: " + objItem.HttpPics);
	WScript.Echo("HttpRedirect: " + objItem.HttpRedirect);
	WScript.Echo("LogonMethod: " + objItem.LogonMethod);
	WScript.Echo("MaxRequestEntityAllowed: " + objItem.MaxRequestEntityAllowed);
	WScript.Echo("MimeMap: " + objItem.MimeMap);
	WScript.Echo("Name: " + objItem.Name);
	WScript.Echo("NTAuthenticationProviders: " + objItem.NTAuthenticationProviders);
	WScript.Echo("PassportRequireADMapping: " + objItem.PassportRequireADMapping);
	WScript.Echo("PoolIdcTimeout: " + objItem.PoolIdcTimeout);
	WScript.Echo("Realm: " + objItem.Realm);
	WScript.Echo("RedirectHeaders: " + objItem.RedirectHeaders);
	WScript.Echo("ScriptMaps: " + objItem.ScriptMaps);
	WScript.Echo("SettingID: " + objItem.SettingID);
	WScript.Echo("ShutdownTimeLimit: " + objItem.ShutdownTimeLimit);
	WScript.Echo("SSIExecDisable: " + objItem.SSIExecDisable);
	WScript.Echo("UploadReadAheadSize: " + objItem.UploadReadAheadSize);
	WScript.Echo("UseDigestSSP: " + objItem.UseDigestSSP);
	WScript.Echo("")
	WScript.Echo("########")
	WScript.Echo("")
}