Quantcast
Channel: PowerShell General
Viewing all articles
Browse latest Browse all 10624

I'm a bit rusty and need help.

$
0
0

You know the old saying, "You don't use it you lose it?"  Well I find myself in that spot.  

I can figure out most of what I need but I'm finding it hard to remember how to parse through a list of items and pull out certain parts.  I have a need to pull out the part after "Users of" and before ":" of a line similar to the ones below and copy that to a txt file.  

 

Users of DCCC: (Total of 1 license issued:   Total of 0 licenses in use)

Users of DCCQ: (Total of 1 license issued:   Total of 0 licenses in use)

 

I need to pull the DCCC and the DCCQ part out and add that to the txt file.  This is pretty easy manual work in 90% of my environments, but its the 10% that have 50-100 different licenses that make the manual work just not worth it.  

Any help is very appreciated..   


Viewing all articles
Browse latest Browse all 10624

Latest Images

Trending Articles



Latest Images