137
Views
5
Comments
[Powershell Commander] Powershell commander error
powershell-commander
Web icon
Forge asset 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.

2018-11-07 11-25-34
Danny Prager

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.



UserImage.jpg
Krishanu Deb Roy

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?

2018-11-07 11-25-34
Danny Prager

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?



UserImage.jpg
Krishanu Deb Roy

Hi Danny,

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

2018-11-07 11-25-34
Danny Prager

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)




Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.