This project is read-only.

Cannot warmup custom URLs

Dec 2, 2013 at 9:29 AM
Edited Dec 2, 2013 at 9:30 AM

First of all thanks a lot for this awesome script.
I have one small question, how can I warmup custom URLs?
I've found the lines 75 to 92, but even though I uncomment these lines they do not show up when running the script.

For example, at the moment the script is like this :
    # Add your own URLs below.  Looks at Central Admin Site Title for full lifecycle support in a single script file.
    switch -wildcard ($caTitle) {
        "*PROD*" {
            IENavigateTo "http://portal/popularPage.aspx"
            #IENavigateTo "http://portal/popularPage2.aspx"
            #IENavigateTo "http://portal/popularPage3.aspx
So my understanding is that it should at least try to load the page "http://portal/popularPage.aspx"; even if it doesn't exist; Correct?

But the script only opens the default custom URL :
Opening Custom URLs...
  Navigating to http://localhost:32843/Topology/topology.svc
Opening Host Name Site Collections (HNSC)...
Closing IE
What am I doing wrong?

Thanks in advance and have a nice day
Dec 3, 2013 at 11:06 AM
Edited Dec 3, 2013 at 11:06 AM
OK I found that if I drop my custom URL in the default {} tag then it works.
Not sure what these PROD, DEV etc... are used for
default {
            IENavigateTo ""
Marked as answer by Fluidetom on 12/3/2013 at 3:06 AM