we need to run a simple powershell command on machines as they are provisioned, we have tried creating workflows to do this but its saying the powershell applets dont exist ?
Get-Disk we are using, surely this should be something that is simple to do but we cant get it to run successfully at all ?
prior to vra8 people were saying about using guest tools to do this but this doesnt seem to exist for vra 8 ? the documentation is quite lacking in direction on these things so any advise/help on this matter would be gratefully appreciated
Have you tried using the "Run program in guest" workflow? I think you can just specify the local path to powershell as the program and the script as arguments. I could try to come up with a simple example if needed, when I find the time.
How simple is your simple script?
I use subscriptions to run Powershell code to install applications, AD work post build. I have found ABX has some issues/limits with Powershell.
I have a Workflow that has several Actions that run Powershell scripts.
One of the custom properties in the subscription is vcUuid which I pass into a workflow which returns the "targetvcenterConnection" (See below), once I have the targetVcenterConnection I use that in my vRO Actions to connect to vCenter using normal PowerCLI.
Connect-VIServer $vcfqdn -User $vcUser -Password $vcPass -Force;
$vmname = "VMNAME";
$vm = Get-vm -name $vmname;
You can then check the Exit code