I'm having some trouble invoking a powershell. So far my only way I can run it at this point is to use Designer to get machine name, etc.
I'm using Extending vCAC IaaS to fix an annoyance | Brian Ragazzi as a reference. GetMachineName and GetMachineProperty then invokepowershell. I identified my propertyname and property value and added that variable to the PowerShellVariable as the same property name as before. The custom property in vCAC is a simple yes/no dropdown that i'm using. I'm just trying to do a simple powershell script to create a text file to show that it's working.
here's what I'm running. As you can see the propertyname/value is espSoftware and the powershellvariable is espSoftware.
Param([parameter(Mandatory=$true)]
$espSoftware)
New-Item c:\temp\ -type directory
$espSoftware | Out-File c:\temp\test.txt
I verified this works locally when I run it myself. But when I run it from a workflow stub I get this.
Workflow "WFStubMachineProvisioned" failed with the following exception: Cannot process command because of one or more missing mandatory parameters: espSoftware.
Is there anything I need to know/do for permissions to logon to execute?