![]() In order to get started with creating a custom script either open any PowerShell IDE or the powerEvents ISE shortcut in the start menu, which already opens one of the sample event scripts. Restarting the application is not required as all event scripts and modules are automatically reloaded by default when a change is detected. When creating custom scripts, it is recommended to copy a sample script and modify it with the customizations. Scripts placed in the Disabled folder remain disabled after product updates. To disable or enable a script it can simply be moved to the %PROGRAMDATA%\coolOrange\powerEvents\Events\Disabled directory or back to the Events folder to re-enable it. The goal of all these scripts is to cover some common workflows and be easy to configure using the powerJobs Processor settings dialog. In addition the following event scripts, which are enabled by default, are delivered: Their purpose is to help getting started with the creation of custom event scripts. They are disabled by default and are therefore located in a subdirectory named ‘Disabled’: ![]() ![]() Some of the delivered event scripts start with the name ‘ Sample.’. Scripts Īll PowerShell scripts stored in the %PROGRAMDATA%\coolOrange\powerEvents\Events directory are automatically executed when Vault applications are launched. Therefore the usage of powerVault Cmdlets is limited to code executed in events. Keep in mind, that code in the scripts that is executed without being registered, provides no connection to the Vault.Ī vault connection (required for powerVault Cmdlets) is only available in the script during the execution of a registered event.
0 Comments
Leave a Reply. |