REVISED Feb. 27, 2005 [Thanks to a tip from Steve Foster!]
It’s a well known fact that the first person each day that attempts to access the CompanyWeb Sharepoint Site on an SBS2003 server will encounter a delay. Ray Fong previously offered a modification to the IIS Application Pool as a possible workaround – see http://msmvps.com/kwsupport/archive/2004/03/14/3911.aspx – but that does not completely solve the problem of the first person getting hit with a long delay before the companyweb’s home page appears.
With an assist from Steve Foster, you can create a scheduled task on your server to start up IE every morning prior to employees arriving, and they will not have to endure the long wait!
1. Click on Control Panel > Scheduled Task > Add Scheduled Task; then click Next
2. Scroll down to find and highlight Internet Explorer from the list of available programs, then click Next
3. Type in a name for your task (like “Start CompanyWeb“), click ono the Daily option, then click Next
4. Set the time that you want this to run (maybe 6:30am) and click Next
5. Enter your administrator password (twice), then click Next
6. Click on the ‘Open advanced properties’ box, then click Finish
7. In the Run: box, append -nohome http://companyweb to the end of IEXPLORE.EXE
(note make sure there’s a space between ieplore.exe and -nohome …)
8. Click on the Settings tab and change the ‘Stop Task’ option to 0 hours 1 minute, then click OK
If you want to test to make sure it’s working correctly, go back to Control Panel > Scheduled Tasks, right click on the task you just created and click Run. IE should open up, and one minute later it should close. That’s it.
[PREVIOUS VERSION] Prior to Steve’s suggestion (above), I had written a 3 line batch file to do the same thing. But it also required downloading two free utilities. I like Steve’s solution much better, but here’s how I used to do it. I created a small batch file that will startup IE, display the companyweb home page, and then closes IE. It utilizes two free utility files (sleep.exe and process.exe). SLEEP.EXE is included in the free Windows Server 2003 Resource Kit. Download and install the kit on an XP workstation, and you will have your ‘sleep.exe’ file. http://www.microsoft.com/downloads/details.aspx?FamilyID=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en and PROCESS.EXE is a free utility from BeyondLogic. It comes with several command line options. I use the -q option to gracefully close IE after it has been opened. You can download the utility from here: http://www.beyondlogic.org/solutions/processutil/processutil.htm
Here’s my script:
REM Script C:\companyweb_startup.cmd
START “C:\Program Files\Internet Explorer\IEXPLORE.EXE” http://companyweb/default.aspx
c:\process.exe -q iexplore.exe
Save the file with a .cmd suffix, and then schedule it to run every morning, maybe at 6:30am!I hope this helps someone. And let me know if this script can be improved!