We help IT Professionals succeed at work.

how can I grep a result with powershell ?

199 Views
Last Modified: 2017-07-24
I want to be able to filter when I run "get-childitem env:" and get back only the COMPUTERNAME

thanks !!!!
grep-computername-.JPG
Comment
Watch Question

CERTIFIED EXPERT
Top Expert 2014
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Chris DentPowerShell Developer
CERTIFIED EXPERT
Top Expert 2010
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION

Author

Commented:
perfectomundo !!!!

thanks you save me a lot of time looking for this !!!!