Get-WindowsUpdateLog $lines = Get-Content "$([System.Environment]::GetFolderPath("Desktop"))\WindowsUpdate.log" $parsed = $lines | ForEach-Object { [PSCustomObject]@{ 'Timestamp' = $_.Substring(0,27) 'ProcessID' = $_.Substring(28,6).Trim() 'ThreadID' = $_.Substring(34,6).Trim() 'Task' = $_.Substring(40,15).Trim() 'Data' = $_.Substring(56) } } $parsed | Out-GridView