Skip to content

xIisHandler

Johan Ljunggren edited this page Dec 6, 2023 · 2 revisions

xIisHandler

Important

This resource has been renamed in the latest release, see IisHandler. Bug fixes and new functionality will only be added to the renamed resource.

Parameters

Parameter Attribute DataType Description Allowed Values
Name Key String The name of the handler, for example 'PageHandlerFactory-Integrated-4.0'
Ensure Required String Ensures that the handler is Present or Absent. Defaults to Present. Present, Absent

Description

Please use WebApplicationHandler resource instead. xIISHandler will be removed in future release.

Requirements

  • Target machine must be running Windows Server 2012 R2 or later.

Known issues

All issues are not listed here, see here for all open issues.

Examples

Example 1

configuration Sample_xIisHandler_Remove32Bit
{
    param
    (
        # Target nodes to apply the configuration
        [string[]]$NodeName = 'localhost'
    )

    # Import the module that defines custom resources
    Import-DscResource -Module xWebAdministration, PSDesiredStateConfiguration

    Node $NodeName
    {
        # Install the IIS role
        WindowsFeature IIS
        {
            Ensure = 'Present'
            Name   = 'Web-Server'
        }

        xIisHandler aspq_ISAPI_4_0_32bit
        {
            Name   = 'aspq-ISAPI-4.0_32bit'
            Ensure = 'Absent'
        }

        xIisHandler cshtm_ISAPI_4_0_32bit
        {
            Name   = 'cshtm-ISAPI-4.0_32bit'
            Ensure = 'Absent'
        }

        xIisHandler cshtml_ISAPI_4_0_32bit
        {
            Name   = 'cshtml-ISAPI-4.0_32bit'
            Ensure = 'Absent'
        }

        xIisHandler vbhtm_ISAPI_4_0_32bit
        {
            Name   = 'vbhtm-ISAPI-4.0_32bit'
            Ensure = 'Absent'
        }

        xIisHandler vbhtml_ISAPI_4_0_32bit
        {
            Name   = 'vbhtml-ISAPI-4.0_32bit'
            Ensure = 'Absent'
        }

    }
}