This script will provide a list of the Microsoft updates that have been applied to the local computer and provide the output in a file asd well as a directory of your choice.

Example: Get-HotFix | out-file -filepath “<File Path>”