设置OA应用程序池标识、启动模式
$pollname = “OA”
$AppPool = Get-ItemProperty “IIS:\AppPools\$pollname”
$AppPool.processModel.identityType = “NetworkService”
$AppPool | set-item
$AppPool.processModel.identityType
Set-ItemProperty -Path $AppPool.PSPath -Name startMode -Value “AlwaysRunning”
设置OA站点预加载为True
$Site_mailauth = “OA”
$Site = Get-Item IIS:\Sites\$Site_mailauth
$Site.applicationDefaults.preloadEnabled = $true
$Site | Set-Item -Verbose
设置OA站点预加载路径,解决加载数据库慢的问题,参考:https://blog.csdn.net/shunhua19881987/article/details/124269640
Add-WebConfigurationProperty -pspath “MACHINE/WEBROOT/APPHOST/$Site_mailauth” -filter “system.webServer/applicationInitialization” -name “.” -value @{initializationPage=’/Home’}
Original: https://www.cnblogs.com/dreamer-fish/p/16418866.html
Author: momingliu11
Title: IIS新建站点、配置应用程序池
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/551645/
转载文章受原作者版权保护。转载请注明原作者出处!