Загрузка данных


$o="$env:USERPROFILE\Desktop\disk_report.txt"; Get-PhysicalDisk | Format-List FriendlyName,FirmwareVersion,HealthStatus,OperationalStatus | Out-File $o; Get-PhysicalDisk | Get-StorageReliabilityCounter | Format-List Temperature,TemperatureMax,Wear,ReadErrorsUncorrected,WriteErrorsUncorrected,PowerOnHours | Out-File $o -Append; Get-WinEvent -FilterHashtable @{LogName='System';ProviderName='stornvme';Id=129} -EA 0 | Group-Object {$_.TimeCreated.ToString('yyyy-MM-dd')} | Format-Table Count,Name -AutoSize | Out-File $o -Append; notepad $o




Get-NetIPAddress -AddressFamily IPv4 | Where-Object IPAddress -notlike '127.*' | Select-Object IPAddress, InterfaceAlias; Test-NetConnection -ComputerName localhost -Port 22 | Select-Object TcpTestSucceeded