Query - Powershell Output to display in a Temp text file

Hi,

I am trying to figure out how to pipe the Output of a script to a Temp Text file, as opposed to saving down to the c and having to open it each time,

Is it possible, I'm pretty sure I could do it with VBscripts,

If so, what is the commandlet called please so I can look into how i could use it in my scripts.

Thanks,

get-wmiobject Win32_QuickFixEngineering | sort -property HotFixID | select -property HotFixID, Description | out-file C:\Scripts\output.txt

#C:\PC_Tools\Temp\Hotfix.txt

Parents Reply Children
No Data