Examples/Sample_xWebAppPool.ps1
<#
.SYNOPSIS Create and configure an application pool. .DESCRIPTION This example shows how to use the xWebAppPool DSC resource to create and configure an application pool. #> Configuration Sample_xWebAppPool { param ( [String[]]$NodeName = 'localhost' ) Import-DscResource -ModuleName xWebAdministration Node $NodeName { xWebAppPool SampleAppPool { Name = 'SampleAppPool' Ensure = 'Present' State = 'Started' autoStart = $true CLRConfigFile = '' enable32BitAppOnWin64 = $false enableConfigurationOverride = $true managedPipelineMode = 'Integrated' managedRuntimeLoader = 'webengine4.dll' managedRuntimeVersion = 'v4.0' passAnonymousToken = $true startMode = 'OnDemand' queueLength = 1000 cpuAction = 'NoAction' cpuLimit = 90000 cpuResetInterval = (New-TimeSpan -Minutes 5).ToString() cpuSmpAffinitized = $false cpuSmpProcessorAffinityMask = 4294967295 cpuSmpProcessorAffinityMask2 = 4294967295 identityType = 'ApplicationPoolIdentity' idleTimeout = (New-TimeSpan -Minutes 20).ToString() idleTimeoutAction = 'Terminate' loadUserProfile = $true logEventOnProcessModel = 'IdleTimeout' logonType = 'LogonBatch' manualGroupMembership = $false maxProcesses = 1 pingingEnabled = $true pingInterval = (New-TimeSpan -Seconds 30).ToString() pingResponseTime = (New-TimeSpan -Seconds 90).ToString() setProfileEnvironment = $false shutdownTimeLimit = (New-TimeSpan -Seconds 90).ToString() startupTimeLimit = (New-TimeSpan -Seconds 90).ToString() orphanActionExe = '' orphanActionParams = '' orphanWorkerProcess = $false loadBalancerCapabilities = 'HttpLevel' rapidFailProtection = $true rapidFailProtectionInterval = (New-TimeSpan -Minutes 5).ToString() rapidFailProtectionMaxCrashes = 5 autoShutdownExe = '' autoShutdownParams = '' disallowOverlappingRotation = $false disallowRotationOnConfigChange = $false logEventOnRecycle = 'Time,Requests,Schedule,Memory,IsapiUnhealthy,OnDemand,ConfigChange,PrivateMemory' restartMemoryLimit = 0 restartPrivateMemoryLimit = 0 restartRequestsLimit = 0 restartTimeLimit = (New-TimeSpan -Minutes 1440).ToString() restartSchedule = @('00:00:00', '08:00:00', '16:00:00') } } } |