Skip to content

Instantly share code, notes, and snippets.

@milo2012
Created April 15, 2017 09:22
Show Gist options
  • Save milo2012/f4984227bd063480d83c2bb275828863 to your computer and use it in GitHub Desktop.
Save milo2012/f4984227bd063480d83c2bb275828863 to your computer and use it in GitHub Desktop.
Get-ChildItem -Path "C:\" -Recurse -Include *password*.txt | ForEach-Object{ Write-Output "$($_.FullName)"} | Set-Content “c:\temp\pathtofile.txt"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment