Glam Prestige Journal

Bright entertainment trends with youth appeal.

Trying to see my files larger than 500mb inside C:\users

Get-ChildItem C:\users\cata\ -recurse | where-object {$_.length -gt 500mb} | Sort-Object length | ft fullname, length -auto
FullName
Length
--------
------
C:\users\cata\Downloads\Masters of Science\Masters of Science Fiction.avi 1204361216

As you can see a little bit below, it doesn't search inside hidden folders like AppData.

However, searching explicit in appdata lists an item which previously hasn't been listed.

Get-ChildItem C:\users\cata\appdata -recurse | where-object {$_.length -gt 500mb} | Sort-Object length | ft fullname, length -auto
FullName
Length
--------
------
C:\users\cata\appdata\Roaming\tobedeleted\CentOS-6.0-x86_64-bin-DVD1.iso 4238800896

And if I try to search with -force parameter, it says access denied, even though I can manually go inside the appdata directory. Is it possible to force powershell to go inside the hidden directories such as C:\Users\cata\AppData and search for files?

2

1 Answer

Try using the -Force parameter from an elevated instance of Powershell. Open PS as an administrator, then use -Force (you may also want to use -ErrorAction SilentlyContinue.

Get-ChildItem C:\users\cata -Recurse -Force -ErrorAction SilentlyContinue
0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy