1: #//------------------------------------------------------------------------ 2: #// 3: #// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 4: #// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 5: #// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND / OR FITNESS FOR A 6: #// PARTICULAR PURPOSE. 7: #// 8: #// 9: #// 10: #// Research and ideas for this scritp come from here 11: #// http://kirkhofer.wordpress.com/2008/10/18/sharepoint-warm-up-script/ 12: #//----------------------------------------------------------------------------- 13: 14: # TEST IN STAGING ENVIRONMENT FIRST, THEN IN PRODUCTION IF TESTS PASSED 15: 16: 17: cls 18: 19: function get -webpage([ string ]$url,[System.Net.NetworkCredential]$cred=$null) 20: { 21: $wc = new - object net.webclient 22: if ($cred -eq $null) 23: { 24: $cred = [System.Net.CredentialCache]::DefaultCr...