by Jeremy Canfield | Updated January 1st, 2017
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