Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

best method for crawling a fileshare

$
0
0

I am trying to use PowerShell to crawl one of our fileshares that has ballooned recently, find files modified in the last, say, 14 days. this fileshare has 350k+ files on it dating back to before there were personal computers.

I can't find a way to make this happen with my current knowlege, I don't know if this is getting beyond the scope of powershell, or if I just need to re-architect my scripts for it.

My method was to do something like this:

Powershell
Get-ChildItem$path-Recurse-File|ForeachObject{Write-Host"$($_.FullName),$($_.Length),$($_.LastWriteTime)"|Out-Fileblah.txt

My thought was that I could then just make an array of it form the csv, but the users graciously have used , ; - # . _ in file names making it difficult to delimit.

Pretty much anything I try and run against this directory ends up with an exception because...


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images