Powerhsell commands.
user1272047
1 min read
find recursive
Get-ChildItem -Recurse -Directory | Where-Object { $_.Name -like "*proposal*" } | Select-Object FullName | Tee-Object -FilePath "C:\Users\user001\Desktop\myfiles.win.11\files.tsk.02.proposals.dir.recursive.txt"
Get-ChildItem -Recurse -Directory | Where-Object { $_.Name -like "*proposal*" } | Format-Table FullName -AutoSize | Out-File -FilePath "C:\Users\user001\Desktop\myfiles.win.11\files.tsk.02.proposals.txt"
Get-ChildItem -Recurse | Where-Object { $_.FullName -like "*fleetmanagement*proposal*" -and -not $_.PSIsContainer } | ForEach-Object { "$($_.DirectoryName)\$($_.Name)" } | Out-File -FilePath "C:\Users\user001\Desktop\myfiles.win.11\files.toshiko.02.proposals.contents.recursive.txt"
0
Subscribe to my newsletter
Read articles from user1272047 directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by