I want to extract list of site collection of one of the webapplication using powershell.
I found this url which does the same thing. But i want result in a text file.
http://sharepointhangout.com/powershell-how-to-extract-all-site-collections-in-webapplication/
How to get result in text file?