New
#1
There are lots of methods. The simplest is the same as it is in the cmd prompt
so you use [with your own folder path instead of mine]Code:>
Code:get-hotfix >D:\Desktop\Get-HotFix.txt
You might also wish to study
Export-Csv - SS64 and, for the -Append switch explanation, Export-Csv - MSDocs
Format-Table - SS64
Out-GridView - SS64 and PowerShell - using Out-GridView tables - Windows Questions
examples of Get-ChildItem, Add-Content [log file] - Stack Overflow
Out-File - SS64
Tee-Object - SS64
Write-Host - MSDocs
Write-Output - MSDocs
Export PowerShell output to Excel (GSD) - SSX
Denis
Homer,
It would have to be a very large pot of coffee.
I find that I tend to use either that simplest method [the > redirection] or csv outputs. So perhaps you could just study csv for now and keep the other links for reference.
All the best,
Denis