Quantcast
Channel: TechNet Blogs
Viewing all articles
Browse latest Browse all 17778

PowerTip: Convert Output to Use Specific Delimiter

$
0
0

Summary: Use Windows PowerShell to convert output to a specific delimiter.

Hey, Scripting Guy! Question How can I use Windows PowerShell to select process name and paged system memory, plus separate the output with a colon?

Hey, Scripting Guy! Answer Use the Get-Process cmdlet to retrieve the process information, select the name,
          add the PagedSystemMemorySize property, pipe the output to the ConvertTo-CSV cmdlet,
          and specify the delimiter as “:”:

Get-Process | select name, PagedSystemMemorySize | ConvertTo-Csv -Delimiter ":"


Viewing all articles
Browse latest Browse all 17778

Trending Articles



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