Powershell:
Get-StorageSubSystem Cluster* | Get-StorageHealthReport
Powershell to file:
$Output = Get-StorageSubSystem Cluster* | Get-StorageHealthReport $Records = $Output.ItemValue.Records
$DataTimeStamp = Get-Date
$DataTimeStamp >> "F:\PS\Report.txt"
" " >> "F:\PS\Report.txt"
ForEach ($Record in $Records) { $Record.Name >> "F:\PS\Report.txt" $Record.Value >> "F:\PS\Report.txt" " " >> "F:\PS\Report.txt" }
|
|
|
|
|