DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Restart App Pool Remotely

Sort:
You are not authorized to post a reply.





Growing Member





    Is there a way I could make it easy to restart an app pool remotely? I have over 100 DNN installs and they are on several servers. The steps and lookups and passwords it takes to restart a given site is counter-productive. Ideally I'd like to have a page on my admin site that is visible only to my host account with a button on it for each site that could restart it's app pool. How would I make such a button?






    Veteran Member





      Mark,

      There are lots of variations on how to do this, but ...

      First of all I'd configure IIS to restart the app pools daily, and at a time that would be less instrusive.

      And guessing that most of your site are of interest in their local areas, I'd set that to be 3-4 am in the local time zones.

      Assuming that you don't want to rely on the websites being running normally, you'd need to do something like run a PowerShell script on the servers (check that IIS is running, restart it if necessary, recycle the app pool).

      I've never tried to run a script on a remote computer, but it can be done (Google "run powershell script on remote computer"). You will need credentials to run the script.

      You could set this up to read a file on your local computer and then cycle through the entries. You could schedule that to run at an off time, too.
      Joe Craig
      DNN MVP
      Patapsco Research Group
      You are not authorized to post a reply.

      These Forums are dedicated to the discussion of DNN Platform.

      For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

      1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
      2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
      3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
      4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
      5. No Flaming or Trolling.
      6. No Profanity, Racism, or Prejudice.
      7. Site Moderators have the final word on approving / removing a thread or post or comment.
      8. English language posting only, please.

      Would you like to help us?

      Awesome! Simply post in the forums using the link below and we'll get you started.

      Get Involved