From f9c1a174b70494d0f102382cf010b224ee0b52be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Thu, 30 Jun 2016 22:40:20 +0300 Subject: [PATCH] Documentation for PowerShell. Fixes #66 --- templates/front/base_docs.html | 1 + templates/front/docs.html | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/templates/front/base_docs.html b/templates/front/base_docs.html index 5c825bf5..a57fee22 100644 --- a/templates/front/base_docs.html +++ b/templates/front/base_docs.html @@ -15,6 +15,7 @@
  • Node
  • PHP
  • Browser
  • +
  • PowerShell
  • Email
  • diff --git a/templates/front/docs.html b/templates/front/docs.html index fe46eba7..12cb5b1f 100644 --- a/templates/front/docs.html +++ b/templates/front/docs.html @@ -134,6 +134,28 @@ thing: they fire off a HTTP GET method.

    {% include "front/snippets/browser.html" %} + +

    PowerShell

    +

    + You can use PowerShell + and Windows Task Scheduler to automate various tasks on a Windows system. + From within a PowerShell script it is also easy to ping healthchecks.io. +

    +

    Here is a simple PowerShell script that pings healthchecks.io. +When scheduled to run with Task Scheduler, it will essentially +just send regular "I'm alive" messages. You can of course extend it to +do more things.

    + +{% include "front/snippets/powershell.html" %} + +

    Save the above to e.g. C:\Scripts\healthchecks.ps1. Then use +the following command in a Scheduled Task to run the script: +

    + +
    +powershell.exe -ExecutionPolicy bypass -File C:\Scripts\healthchecks.ps1
    +
    +

    Email