Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

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 3333

Trending Articles