Quantcast
Channel: Virtual Machine Manager – General forum
Viewing all articles
Browse latest Browse all 2770

Run VMM Powershell Script issue

$
0
0

Hi All,

I am trying to automate a process in which i have used "Run VMM Powershell Script" activity in a runbook, the command which i am trying to execute using this activity is :-

$nodes=get-scvmhostcluster|select nodes

& in output variable 1 the variable is declared as $nodes but no matter i do what it returns a blank value.

the output which i am expecting is :-

Nodes
-----
{Server Name1, Server Name2, Server Name3}

but i thing as there are special characters present in the output, the variable is not able to hold the output value.

Other commands pipelined with get-scvmhostcluster which are without special characters are working fine.

I wanted to know is there any solution for this issue ?

I have gone through this article by Philip Gibson, which explains this activity in detail but i am unable to configure it using my command.

Please Help.

Thanks,

Pranay.


Viewing all articles
Browse latest Browse all 2770

Trending Articles



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