On Windows machines, you may often have problems with your updates, either on downloading or applying them to the machines. In my troubleshooting days, I therefore created a little function to retrieve all important logs and event information:
<# .Synopsis Gathers all Windows Update relevant logs from the local computer and open the file path. .DESCRIPTION Gathers all Windows Update relevant logs from the local computer - Get-Hotfix, Get-WindowsUpdateLog and all log in C:\Windows\logs\ .EXAMPLE Get-WULogs .EXAMPLE Get-WULogs -LogFilePath 'D:\Logs' #> function Get-WULogs { [CmdletBinding()] Param ( # LogFilePath [Parameter(Mandatory = $false, Position = 0)] $LogFilePath ='c:\Temp\WindowsUpdateLogs\' ) Begin { if(-not(Test-Path $LogFilePath)) { New-Item -Path $LogFilePath -ItemType Directory } } Process { #region variables $WUDOFilePathCsv = [System.IO.Path]::Combine($LogFilePath, 'WUDOLog.Clixml') $WUDOFilePathCli...