Link to home
Start Free TrialLog in
Avatar of peterliong
peterliongFlag for Singapore

asked on

Windows updates displayed in a text file

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.
ASKER CERTIFIED SOLUTION
Avatar of oBdA
oBdA

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial