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

Script requires PowerShell 3.0 #13

Closed crossan007 closed 7 years ago

crossan007 commented 7 years ago

@spjeff Don't merge this yet - I'm still troubleshooting. It seems that PowerShell on Server2008R2 does not have the Get-CimInstance cmdlet

crossan007 commented 7 years ago

https://powershell.org/2013/04/10/get-ciminstance-from-powershell-2-0/

crossan007 commented 7 years ago

Add a #requires -Version 3.0 tag so that the script will give an informative error if running on unsupported platform.

https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.core/about/about_requires