2,187
edits
(→Installation: Added profile) |
(→Scripts: Add "Scheduled Tasks") |
||
Line 231: | Line 231: | ||
Stop-Transcript | Stop-Transcript | ||
</source> | </source> | ||
== Scheduled Tasks == | |||
To run a script as a scheduled task, complete the task config as normal, in the ''Action'' tab populate as follows... | |||
* '''Program/Script''' - PowerShell | |||
* '''AddArguments (optional)''' - As below (not optional!) | |||
** Basic: <code>script.ps1</code> | |||
** Where paths have spaces and your script takes parameters (eg '''ScriptParam'''): <code>"& 'C:\Path\To Script\script.ps1'" -ScriptParam ScriptParamData</code> | |||
* '''Start in (optional)''' - As below (optional, but recommended) | |||
** <code>C:\Path\To Script</code> | |||
** Do not add quotes, even if your path has spaces | |||
== Call External Process == | == Call External Process == |