Hi, I've been trying to generate a report of the Windows Updates of a PC. Below is the .Bat file I've tried to write. Please help to correct my error.
hostname > "%USRPROFILE%\hotfix.txt"
echo. >> "%USERPROFILE%\hotfix.txt"
wmic qfe list brief /format:texttablewsys >> "%USERPROFILE%\hotfix.txt"
Output should be
Line1 - hostname
Line2 - Blank Line
Line3 and Below - Table of Windows Update and Installation Date
I hope someone will be able to help. I'm not good at programming.