Browse Source

Update PowerShell example

master
Pēteris Caune 3 years ago
parent
commit
38c480bab5
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
5 changed files with 5 additions and 4 deletions
  1. +1
    -1
      templates/docs/powershell.html
  2. +1
    -1
      templates/docs/powershell.md
  3. +1
    -0
      templates/front/show_usage_modal.html
  4. +1
    -1
      templates/front/snippets/powershell_inline.html
  5. +1
    -1
      templates/front/snippets/powershell_inline.txt

+ 1
- 1
templates/docs/powershell.html View File

@ -17,5 +17,5 @@ Then use the following command in a Scheduled Task to run the script:</p>
<p>In simple cases, you can also pass the script to PowerShell directly,
using the "-command" argument:</p>
<div class="highlight"><pre><span></span><code># Without an underlying script, passing the command to PowerShell directly:
powershell.exe -command <span class="p">&amp;</span>{Invoke-RestMethod PING_URL}
powershell.exe -Command <span class="s2">&quot;&amp;{Invoke-RestMethod PING_URL}&quot;</span>
</code></pre></div>

+ 1
- 1
templates/docs/powershell.md View File

@ -25,5 +25,5 @@ using the "-command" argument:
```bat
# Without an underlying script, passing the command to PowerShell directly:
powershell.exe -command &{Invoke-RestMethod PING_URL}
powershell.exe -Command "&{Invoke-RestMethod PING_URL}"
```

+ 1
- 0
templates/front/show_usage_modal.html View File

@ -89,6 +89,7 @@
</div>
<div class="tab-pane" id="powershell">
{% include "front/snippets/powershell.html" %}
{% include "front/snippets/powershell_inline.html" %}
</div>
<div class="tab-pane" id="email">
<p>


+ 1
- 1
templates/front/snippets/powershell_inline.html View File

@ -1,3 +1,3 @@
<div class="highlight"><pre><span></span><span class="c1"># Without an underlying script, passing the command to PowerShell directly:</span>
powershell.exe -command <span class="p">&amp;</span><span class="o">{</span>Invoke-RestMethod {{ ping_url }}<span class="o">}</span>
powershell.exe -Command <span class="s2">&quot;&amp;{Invoke-RestMethod {{ ping_url }}}&quot;</span>
</pre></div>

+ 1
- 1
templates/front/snippets/powershell_inline.txt View File

@ -1,2 +1,2 @@
# Without an underlying script, passing the command to PowerShell directly:
powershell.exe -command &{Invoke-RestMethod PING_URL}
powershell.exe -Command "&{Invoke-RestMethod PING_URL}"

Loading…
Cancel
Save