Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

select-string question

$
0
0

I have this string   OurCompanyDomainName\UserName   UserName can be any user in our company so i want to select everything to the Right of '\'  and everything I've tried so far fails.

 

How would I parse out just UserName?  so if I have Acme.org\JimKincade   I want just JimKincade

 

Thanks.  

 


Viewing all articles
Browse latest Browse all 6937

Trending Articles