Hi,
I have this PowershellOutput which I'd like to make an attachment of a mail. However, the output is great in gridview but can't attach that to a mail.
Please advise.
Technology Tips and News
Hi,
I have this PowershellOutput which I'd like to make an attachment of a mail. However, the output is great in gridview but can't attach that to a mail.
Please advise.
Hi,
You'll need to clarify what you're asking. Your email body either needs to be HTML or a s
Thanks.
I have a csv file $Report2 but the output is not in nice columns, that's actually what I 'm trying to achieve.
$Myoutput | Select-Object -PropertyComputerName,UserName,PackageName| Out-File $Report2
Tried that but output is still not in columns, tried this but didn't help either
$Myoutput | Select-Object -Property ComputerName,UserName,PackageName| Export-csv $Report2 -NoTypeInformation -Delimiter "," |
When I open the csv it has"ComputerName","Username","PackageName" ...
PowerShell does not have a grid view and email cannot display a sortable grid. Are you saying you want to convert the output to a XLS file? You have to be clear about what you are asking.
Tried that but output is still not in columns, tried this but didn't help either
$Myoutput | Select-Object -Property ComputerName,UserName,PackageName| Export-csv $Report2 -NoTypeInformation -Delimiter "," When I open the csv it has"ComputerName","Username","PackageName"
$Myoutput | Select-Object -Property ComputerName,UserName,PackageName | Out-Gridview