Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Move Text content to Excel

$
0
0

HI team,

I have a number of text file in a folder. each file gives information like hostname, OS, username, service pack etc. about individual machine. Example of one of the file

--------------------------------------------------------------------------------------

Hostname = desktop12456

OS = Windows 7

username = Joe B

--------------------------------------------------------------------------------------

I want to collect this information of all text files in excel sheet as

-------------------------------------------------------------

    Hostname          OS          Username

desktop12346       Win 7          Joe B

laptop123456        win 8          mick s

.

---------------------------------------------------------------

Could please help give a idea which cmdlets can I use in writing a script ?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>