Powershell : to check inboxes and sort by largest file

Get-ChildItem "F:\SMSPKGF$" -recurse | Where {!$_.PSIsContainer} | Group Directory | sort-object count -descending | Format-Table Name, Count -autosize

Comments

Popular posts from this blog