Search entire drive using select-string in powershell - TechRepublic
General discussion
December 21, 2015 at 04:55 AM
Jctech2025

Search entire drive using select-string in powershell

by Jctech2025 . Updated 10 years, 6 months ago

HI all using the select-string cmdlet in powershell, I am able to find the path do a file if I’m either in the directory all ready or I specify the entire path to the file using the -Path switch.

Is there a way to get select-string to find the file just by putting in the name of the file?, This without having to specify the whole path?

Any thoughts are appreciated.

This discussion is locked

All Comments