Introduction To Windows Command Line - Finding Files and Directories

Continuing the discussion from Introduction To Windows Command Line - Finding Files and Directories:

I got waldo.txt by this command :- Get-ChildItem -Path C:\ -Filter waldo.txt -Recurse -ErrorAction SilentlyContinue

good , i see that other apply cmd command directly from powershell and get this error :


but we should know that we currently working with powershell (PS) , the solution is to apply powershell command to search or using cmd inside this powershell , like that : cmd.exe /c " where /R C:\Users\ waldo.txt"

Run CMD or POwershell as ADMINSTRATOR