<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to word wrap a field  - possibly via Export-CSV or other method in PowerShell/PowerCLI in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/How-to-word-wrap-a-field-possibly-via-Export-CSV-or-other-method/m-p/1758108#M55640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK Gang:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I have a true headscratcher for the day.&amp;nbsp; Here's the 411:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LucD has been assisting me with my meager PowerShell skills and he's giving me a serious tutorial in calculated fields&amp;nbsp;&amp;nbsp; Sometimes the old @{&amp;nbsp; } or the &lt;SPAN style="color: black;"&gt;E&lt;/SPAN&gt;&lt;SPAN style="color: #979797;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;{ or &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @(&lt;/SPAN&gt;&lt;SPAN style="color: orangered;"&gt;$_&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;} can really throw me - but i digress.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm getting the information that I need, but now there's the issue of how the output comes.&amp;nbsp; The majority of the time, I use the Export-CSV so that I can ultimately import it into Excel and provide whatever tables my colleagues need at the time.&amp;nbsp; However, many times I run into a situation like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output from an Export-CSV, right after being pulled into Excel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 1139px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="199"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;FDR097P&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="229"&gt;10.2.4.97&lt;/TD&gt;&lt;TD width="711"&gt;Symantec XXXXXX&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;FDDVG125P&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;10.2.4.125&lt;/TD&gt;&lt;TD&gt;1XXXXXXXXXXXX&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;FDR2VG120P&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;10.2.3.135&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="text-decoration: line-through;"&gt;XXXXXXXX &lt;/SPAN&gt;Server to become New PVWA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="60"&gt;NetApp Performance Manager&lt;/TD&gt;&lt;TD&gt;10.2.0.100,fe80::250:56ff:feac:b35e&lt;/TD&gt;&lt;TD class="xl63" width="711"&gt;OnCommand Performance Manager - Performance troubleshooting for NetApp FAS Series&lt;BR /&gt;&lt;SPAN&gt; For more information or support please visit &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.netapp.com/" rel="nofollow"&gt;http://www.netapp.com&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;TBCSR04&lt;/TD&gt;&lt;TD&gt;172.24.240.70,172.24.240.208&lt;/TD&gt;&lt;TD&gt;XXXXXXXXXXXXXXXXXX&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;FDDVG121D&lt;/TD&gt;&lt;TD&gt;10.2.3.121&lt;/TD&gt;&lt;TD&gt;SAP Mobility/Agentry DEV&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="60"&gt;NetApp Unified Manager&lt;/TD&gt;&lt;TD&gt;10.2.0.99,fe80::250:56ff:feac:7d6d&lt;/TD&gt;&lt;TD class="xl63" width="711"&gt;OnCommand Unified Manager - Application to monitor and manage NetApp storage systems.&lt;BR /&gt;&lt;SPAN&gt; For more information or support please visit &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.netapp.com/" rel="nofollow"&gt;http://www.netapp.com&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem resides in Rows 4 and 7.&amp;nbsp; Instead of the VM name, information from Row 3 column 3 has made it's way into that field (cell).&amp;nbsp; Or the problem is that data in row 4 column 3 was so massive, that it overwrote the data in the same row, but Column 1..This was a direct output I received after my script ran and the results place in Export-CSV.&amp;nbsp; I don't know if the problem is in the Export-CSV or if it's somewhere else.&amp;nbsp; I keep thinking that there may be some type of field limit for the 3rd column (Notes - pulled from Notes field via Get-VM).&amp;nbsp; Is the error because I haven't included a parameter which would allow the data in field (column) 3 to word wrap?&amp;nbsp; Or is it some parameter that's missing from the Export-CSV command which would allow each field (or a specific field) to word wrap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any insight/guidance that anyone can share.&amp;nbsp; I scoured Google and MSDN for a method, but I can't find one.&amp;nbsp; Hopefully, one of you already has.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;BR /&gt;Miguel&amp;nbsp;&amp;nbsp;&amp;nbsp; :smileyconfused:&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.vmware.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;:smileyangry:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Feb 2017 14:21:15 GMT</pubDate>
    <dc:creator>miguelvelezwhit</dc:creator>
    <dc:date>2017-02-24T14:21:15Z</dc:date>
    <item>
      <title>How to word wrap a field  - possibly via Export-CSV or other method in PowerShell/PowerCLI</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/How-to-word-wrap-a-field-possibly-via-Export-CSV-or-other-method/m-p/1758108#M55640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK Gang:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe I have a true headscratcher for the day.&amp;nbsp; Here's the 411:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LucD has been assisting me with my meager PowerShell skills and he's giving me a serious tutorial in calculated fields&amp;nbsp;&amp;nbsp; Sometimes the old @{&amp;nbsp; } or the &lt;SPAN style="color: black;"&gt;E&lt;/SPAN&gt;&lt;SPAN style="color: #979797;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;{ or &lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @(&lt;/SPAN&gt;&lt;SPAN style="color: orangered;"&gt;$_&amp;nbsp; &lt;SPAN style="color: #000000;"&gt;} can really throw me - but i digress.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I'm getting the information that I need, but now there's the issue of how the output comes.&amp;nbsp; The majority of the time, I use the Export-CSV so that I can ultimately import it into Excel and provide whatever tables my colleagues need at the time.&amp;nbsp; However, many times I run into a situation like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output from an Export-CSV, right after being pulled into Excel:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#575757&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;arial,helvetica,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#FFFFFF&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#6690BC&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;center&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;2&amp;quot;}" style="width: 1139px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="199"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;FDR097P&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="229"&gt;10.2.4.97&lt;/TD&gt;&lt;TD width="711"&gt;Symantec XXXXXX&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;FDDVG125P&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;10.2.4.125&lt;/TD&gt;&lt;TD&gt;1XXXXXXXXXXXX&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="text-decoration: line-through;"&gt;FDR2VG120P&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;10.2.3.135&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="text-decoration: line-through;"&gt;XXXXXXXX &lt;/SPAN&gt;Server to become New PVWA&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="60"&gt;NetApp Performance Manager&lt;/TD&gt;&lt;TD&gt;10.2.0.100,fe80::250:56ff:feac:b35e&lt;/TD&gt;&lt;TD class="xl63" width="711"&gt;OnCommand Performance Manager - Performance troubleshooting for NetApp FAS Series&lt;BR /&gt;&lt;SPAN&gt; For more information or support please visit &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.netapp.com/" rel="nofollow"&gt;http://www.netapp.com&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;TBCSR04&lt;/TD&gt;&lt;TD&gt;172.24.240.70,172.24.240.208&lt;/TD&gt;&lt;TD&gt;XXXXXXXXXXXXXXXXXX&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;FDDVG121D&lt;/TD&gt;&lt;TD&gt;10.2.3.121&lt;/TD&gt;&lt;TD&gt;SAP Mobility/Agentry DEV&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="60"&gt;NetApp Unified Manager&lt;/TD&gt;&lt;TD&gt;10.2.0.99,fe80::250:56ff:feac:7d6d&lt;/TD&gt;&lt;TD class="xl63" width="711"&gt;OnCommand Unified Manager - Application to monitor and manage NetApp storage systems.&lt;BR /&gt;&lt;SPAN&gt; For more information or support please visit &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://www.netapp.com/" rel="nofollow"&gt;http://www.netapp.com&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem resides in Rows 4 and 7.&amp;nbsp; Instead of the VM name, information from Row 3 column 3 has made it's way into that field (cell).&amp;nbsp; Or the problem is that data in row 4 column 3 was so massive, that it overwrote the data in the same row, but Column 1..This was a direct output I received after my script ran and the results place in Export-CSV.&amp;nbsp; I don't know if the problem is in the Export-CSV or if it's somewhere else.&amp;nbsp; I keep thinking that there may be some type of field limit for the 3rd column (Notes - pulled from Notes field via Get-VM).&amp;nbsp; Is the error because I haven't included a parameter which would allow the data in field (column) 3 to word wrap?&amp;nbsp; Or is it some parameter that's missing from the Export-CSV command which would allow each field (or a specific field) to word wrap?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate any insight/guidance that anyone can share.&amp;nbsp; I scoured Google and MSDN for a method, but I can't find one.&amp;nbsp; Hopefully, one of you already has.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA,&lt;BR /&gt;Miguel&amp;nbsp;&amp;nbsp;&amp;nbsp; :smileyconfused:&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.vmware.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;:smileyangry:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 14:21:15 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/How-to-word-wrap-a-field-possibly-via-Export-CSV-or-other-method/m-p/1758108#M55640</guid>
      <dc:creator>miguelvelezwhit</dc:creator>
      <dc:date>2017-02-24T14:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to word wrap a field  - possibly via Export-CSV or other method in PowerShell/PowerCLI</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/How-to-word-wrap-a-field-possibly-via-Export-CSV-or-other-method/m-p/1758109#M55641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This might be an Excel thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be useful to see what exactly is in column 3 for the rows 4 and 7.&lt;/P&gt;&lt;P&gt;Can you do a, provided the result is in a variable named $report, the following command: $report | Format-List&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Feb 2017 14:38:13 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/How-to-word-wrap-a-field-possibly-via-Export-CSV-or-other-method/m-p/1758109#M55641</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2017-02-24T14:38:13Z</dc:date>
    </item>
  </channel>
</rss>

