I am interested how could one run any Powershell command using K2 Five Workflow? Please, if someone could write step by step installation/configuration process, that is necessary to execute Powershell commands. I found some old posts how to do this via K2 BlackPearl, but the instructions are not explicitly given for K2 Five version.
Solved! Go to Solution.
See the following link below on how to run powershell within workflow:
Should you find the information from the article useful or leading you to the answer please mark as "Solution and/or Kudo", as it will assist other k2 developers with relevant information in the near future.
[K2 will not accept any liability for any issues arising from actions taken in respect of the information provided by any forum member]
I have done this with a powershell broker found here on the market (http://community.k2.com/t5/K2-blackpearl/PowerShell-Service-Object/ba-p/1025). When installed you can call the smartobject from K2 Five workflow, but the script files needs to be accessible from the server since the workflow as a standard is run with the service account.
I've wrote a short post about how to get started
Please see the following recent article regarding execution of k2 five workflow instance using powershell commands :-
https://mikerodionov.com/category/tech/k2/ and also check out with the k2 Management shell(https://community.k2.com/t5/General-K2-Utilities/K2-Management-Shell/ba-p/100805) installation which "provides PowerShell cmdlets as wrapper around the K2 API?s so that administrators and developers can more easily manipulate K2 in a programmatic fashion. This solution was developed specifically for K2 4.7 and K2 Five".
Should you find any of the above information useful kindly mark such as "Kudo, Accepted Solution and/or MeToo options", as assistance for future k2 researchers.
The PowerShell wizard allows you to run PowerShell commands from your K2 process. The PowerShell commands are run on the K2 server itself.
PowerShell must be installed on the K2 Server and on the K2 machine designing the K2 workflow (this is because of the assemblies required).
The wizard allows users to specify input variables and output variables. With the normal Run-As feature, you can run the powershell in another users' context.
Installation (if you build yourself):
Installation (if you do not build yourself):
Version 1.2 is released!
The V1.2 release improves the following:
Instructions to install available here: http://old.k2underground.com/groups/powershell_wizard/default.aspx
Known issues / Feature requests
See github page!
i downloaded the zip, and copied the powershell.dll to the servicebroker folder
restarted K2, unable to see it to register within the service object tester