Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

Add Description from CSV w/ Multiple Lines

$
0
0

Hi guys/gals,

 

Currently, I have a CSV that looks something like this:

 

VMName,Note

VM1, Owner: John Description: File/Print

VM2, Owner: Bill Description: Database


Using the following command works, but I'm only able to add Note as 1 continuous line.


Import-Csv"C:\ChangeNotes.csv" | % { Set-VM$_.VMName -Description$_.Note -Confirm:$false}


My question is, I would like to separate the Note string into 2 Lines.

ie:

Notes:

Owner: John

Description: File/Print


How can I achieve this?  Any help would be greatly appreciated.  Thanks.

 

 

 



Viewing all articles
Browse latest Browse all 176483

Trending Articles



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