Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- appcmd set config /section:asp /maxRequestEntityAllowed: int
- [string]$Account = $cred.UserName
- [string]$AccountPW = $cred.Password | ConvertFrom-SecureString
- If(!(Get-Module WebAdministation))
- {
- import-module WebAdministration
- }
- $iisAppPoolPath = "IIS:AppPoolsTEST"
- $oappPool = New-Item $iisAppPoolPath
- $oappPool | Set-ItemProperty -name "enable32BitAppOnWin64" -Value "true"
- $oappPool | Set-ItemProperty -Name "managedRuntimeVersion" -Value "v4.0"
- $oappPool | Set-ItemProperty -Name "managedPipelineMode" -Value "Classic"
- $oappPool | Set-ItemProperty -name "processModel" -value @{userName=$Account;password=$AccountPW;identitytype=3}
- Get-Item 'IIS:SitesDefault Web Site'
- Set-WebConfigurationProperty /system.webserver/asp/limits -name maxRequestEntityAllowed -value "10485760"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement