电子邮件powershell作为电子邮件主体中的桌子
我正在尝试将以下发送作为电子邮件发送。在PowerShell中,输出很好,但是当我尝试将其发送到电子邮件时,我会得到一张表,但没有任何信息,
Get-VM VMName, @{Name="TotalSnapshots";Expression={(Get-VMSnapshot -VM $_ | Measure-Object).Count}},@{Name="TimeStamp";Expression={(Get-VMSnapshot -VM $_ | Select-Object CreationTime).CreationTime}}
这是电子邮件发送的。任何帮助都将不胜感激
i am trying to get the below to send as an email. In powershell the output is fine but when i try and send it to email i get a table but not any of the info
Get-VM VMName, @{Name="TotalSnapshots";Expression={(Get-VMSnapshot -VM $_ | Measure-Object).Count}},@{Name="TimeStamp";Expression={(Get-VMSnapshot -VM $_ | Select-Object CreationTime).CreationTime}}
This is what the email sends. Any help would be greatly appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
被努力解决...选择对象而不是格式表DOH!
manged to work it out...Select-Object instead of format table doh!