How to send notification mail via powershell
问题 I want to send notification mail after vm deploy like below. My question is : 1 - If DOMAIN field 'Y' then TRUE else will WORKGROUP 2- IF BACKUP IP field 'N' then it will "not defined" 3- Lastly , I have $diskSizes variable. A VM have one or more disks. $diskSizes[0 -> Hard disk 2] , $diskSizes[1 -> Hard disk 3] and so on. My script: $VCServer = Read-Host "Enter the vCenter server name" Import-Csv -Path C:\temp\vmdeploy.csv -UseCulture -PipelineVariable row | ForEach-Object -Process { New-Vm