从磁盘中返回磨损柜台
只是试图为我的工作自动化一些事情,我需要将磨损报告给txt文件,然后我可以将其编译为已通过电子邮件发送的报告。
在下面运行的是,在下面运行的是要导出到
Get-Disk | Where-Object {$_.IsBoot -eq 'True'} | Get-StorageReliabilityCounter | Select Wear
下面的文件的变量是我正在运行的是生成我需要的文件,但是实际上,没有任何
$DiskWear = Get-Disk | Where-Object {$_.IsBoot -eq 'True'} | Get-StorageReliabilityCounter | Select Wear
$DiskWear.Trim > trimmed.txt
帮助,没有任何帮助:)
Just trying to automate some things for my job and I need to report the wear to a txt file that I can later compile into a report that gets emailed.
Having some trouble with getting it to populate the txt file with the wear indication, below is what I'm running and it gives me the variable I want to export to a file
Get-Disk | Where-Object {$_.IsBoot -eq 'True'} | Get-StorageReliabilityCounter | Select Wear
Below is what I'm running that generates the file I need but doesn't actually fill with anything
$DiskWear = Get-Disk | Where-Object {$_.IsBoot -eq 'True'} | Get-StorageReliabilityCounter | Select Wear
$DiskWear.Trim > trimmed.txt
Any help appreciated :)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论