spjeff / spbestwarmup

Tired of waiting for SharePoint pages to load? Want something easy to support? That works on all versions? This warmup script is for you!
2 stars 0 forks source link

Update SPBestWarmUp.ps1 #30

Closed SergeiAtML closed 3 years ago

SergeiAtML commented 3 years ago

i put simple try/catch around the: $appPools = Get-WMIObject -Namespace "root/MicrosoftIISv2" -Class "IIsApplicationPoolSetting" -ErrorAction SilentlyContinue | Select-Object WAMUserName, WAMUserPass this will now will run successfully with SP2019/Windows 2019.

spjeff commented 3 years ago

Thank you Sergei.