Hi all ,
a part of my script is as at the below ;
I want to write the "Get-NaSnapshotSchedule" full output into the one excel's cell
How can I do it ?
PS > $a1= Get-NaSnapshotSchedule vol0
PS > $a1
Volume Weeks Days Hours Minutes WhichHours WhichMinutes
------ ----- ---- ----- ------- ---------- ------------
vol0 0 2 6 0 8,12,16,20
$a2= $a1.Weeks , $a1.Days , $a1.Hours , $a1.Minutes , $a1.WhichHours , $a1.WhichMinutes
$ws3.Cells.Item(1,1) = $a2[0] , $a2[1] , $a2[2] , $a2[3] , $a2[4] , $a2[5]
output is ; only $a2[0] (is equal to "0")