[Powershell Commander] Powershell commander error

Forge Component
(9)
Published on 2017-01-07 by Danny Prager
9 votes
Published on 2017-01-07 by Danny Prager

Hi,

We are trying to run the below Powershell script using Commander



It throws the following error,

“Cannot process command because of one or more missing mandatory parameters: Credential.”


Any suggestions regarding how to run this would be very helpful.

Get-Credential gives you a credential prompt in powershell. Unfortunatly that promt can not be outputted to the funtion so.. construct your script like this:


$username = “domain\username”
$password = “NotSecurePassword”
$Credentials = New-Object System.Management.Automation.PSCredential $Username,$Password


hope this helps.


Krishanu Deb Roy wrote:

Hi,

We are trying to run the below Powershell script using Commander



It throws the following error,

“Cannot process command because of one or more missing mandatory parameters: Credential.”


Any suggestions regarding how to run this would be very helpful.



Thank for the reply Danny.

However, we cannot pass a static text as password as multiple users would be running the script from the application which would connect to O365 to open/edit/close cases.

Is there a way to do that?

You can change the static text for input parameters in your server action. If you require specific user credentioals (not the outsystems one) then you should prompt the user for their credentials before running the script using a pop-up or something.



Krishanu Deb Roy wrote:

Thank for the reply Danny.

However, we cannot pass a static text as password as multiple users would be running the script from the application which would connect to O365 to open/edit/close cases.

Is there a way to do that?



Hi Danny,

We are running it from Outsystems cloud. Do we need extra privileges for that?

Krishanu Deb Roy wrote:

Hi Danny,

We are running it from Outsystems cloud. Do we need extra privileges for that?

Powershell commander runs under IIS_Users. It inherits its privilidges from there. I don't know exactlly if they limit your current functionality in the outsystems cloud. (we use it in a private cloud on Azure)