Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 228332

powershell question

$
0
0

Hi

I wrote a loop to retrieve vcenter name $a, cluster name $b and $c folder name in the environment.

How do I display it in excel spreadsheet?

 

Here is an example:

$i =0

while ($i -neq 10) {

$a = $i+1 #display in first raw column 1

$b = $i+2 #display in first raw column 2

$c = $i+3 #display in first raw column 3

$i++

#Add $a, $b and $c to the row $i

}

 

The output I am expecting is

1 2 3

2 3 4

3 4 5

.

.

.


Viewing all articles
Browse latest Browse all 228332

Trending Articles



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