How to search for a directory using PowerShell

Home > Search > How-to
  by

Use this command to search for a directory using PowerShell. Replace "Example" with the name of the directory you wish to locate. "gci" is the short version of Get-ChildItem.

$folderName = "Example"(gci -path C: -filter $foldername -Recurse).FullName

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments