Workflow and ServiceDesk Community

 View Only

Workflow - Plugins - Protirus - Powershell 

Dec 06, 2017 09:03 PM

Powershell

The 'Powershell' plugin opens a file picker, filters on Powershell file extensions (*.ps1, *.psm1, *.psd1) and then runs the chosen file with cutom param ($project) that can be used in your Powershell script.

 

Plugin Icon

Powershell_32.png

 

Author

Protirus_0.png Protirus (Alex Hedley)

 

Perform Action

Choose a Powershell file to run, you can chose whether to hide the powershell dialog.

This runs with a param of the Project Directory "-project"

So you can add the following to your powershell scripts to access this path.

param([String]$project="")
...
write-output $project

 

Workflow-Plugins-Powershell-OpenFile.png

 

Alternative

Start | All Programs | Accessories | Windows PowerShell

%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe

 

Location

[Install Drive]:\Program Files\Symantec\Workflow\Designer\Plugins\

 

DLL

  • Protirus.Workflow.Plugins.dll

 

Code

powershell.exe -file "FILENAME"

Or

powershell.exe -file "" -project ""

Or

powershell.exe -windowstyle Hidden -file "" -project ""

 

Customise

Can be hidden with a config change in the 'Protirus.Workflow.Plugins.xml' file.

 

Documentation

[Display any related Documentation]

  • Title URL
    • Chapter/Page #

Support

[Display any related Support Documents]

  • Title
    • URL

Statistics
0 Favorited
1 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.