Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

Running Powershell process using 'Run Program in guest' workflow

$
0
0

Hi

 

I added a new vmdk disk to my windows server virtual machine and now want to bring the disk online. A simple powershell command would be

 

powershell.exe -command "& 'Get-Disk|?{($_.isOffline)}|Set-Disk -IsOffline $false'"

 

I want to execute this using 'Run Program in guest' workflow and mark the disk 'online'. The workflow executes successfully, but does not achieve intended results.

I also tried something as simple as just running notepad.exe through this workflow. I checked task manager and see the notepad process running but do not see it. I am logged in using the same credentials in the VMs as the one I am passing in the workflow.

 

In the inputs, I am passing fully qualified path to powershell.exe for 'programPath' whereas everything starting -command is passed as arguments.

 

Am I missing something?

 

Thanks

Nachiket


Viewing all articles
Browse latest Browse all 6251

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>