Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

filtering a string in powershell

$
0
0

Hey,

I'm seraching for a solution to filter text out of the active Directory infofield.

I read the field via: $ADVariable.info

Result is a lot of text which starts with: [example]123456 [uninteresting]xyz [uninteresting]xyz

So I Need to filter the numbers after [example], after the numbers is a free space which could the condition to stop filtering. The number is different in each info field, so I wasn't able to do it with the select-string cmdlet and compare somethin.

Any idea?

thanks!! 


Viewing all articles
Browse latest Browse all 21975

Trending Articles



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