Comments (8)
I have a new version for the next release. I am now skipping all reparse points and junctions.
from psscripttools.
What version of PowerShell are you using? What path are you querying? Are you including hidden files?
from psscripttools.
Powershell 5.1. c:\users. Including hidden files.
from psscripttools.
You'll probably get access-denied messages for parts of that path, even if running as Admin. I did a test on my profile in Windows PowerShell.
Get-FolderSizeInfo $home -hidden
My total size is actually about 3GB more than what I get when I use Windows Explorer and look at properties. The same test in PowerShell 7 is closer to the results I see in Windows Explorer. This is on a Windows 11 system. Profile folders are tricky due to hidden files and special access permissions.
Although, there might be an issue with symlinks. In Windows PowerShell, the function follows the link and includes the size information, but not in PowerShell 7, which uses a different .NET method.
from psscripttools.
This suits me, to skip the reparsepoints like the mounted Onedrive ...
$top = ($di.GetDirectories()).Where( { $_.attributes -notmatch 'reparsepoint' })
from psscripttools.
Let me see what I can come up with.
from psscripttools.
v2.49.0 has been published to the PowerShell Gallery if you want to update and test.
from psscripttools.
Looks good. Actually my typical usage is like this, sort of "du | sort -n". It's good for avd, where the disk is slower.
icm comp001 { dir -dir -force C:\programdata\ | Get-FolderSizeInfo.ps1 | sort totalsize } | ft -a
from psscripttools.
Related Issues (20)
- ConvertTo-AsciiArt fails HOT 1
- [Question] Mystical Test-WithCulture HOT 2
- Function "Get-FolderSizeInfo" can throw exception HOT 4
- [Bug]: Show-ANSISequence -Background includes foreground HOT 1
- [Request]: Get-FolderSizeInfo long file/folder names enabler HOT 13
- Add parameter to Get-TypeMember HOT 1
- Hide common .NET methods in Get-TypeMember HOT 2
- Add CimClass member command HOT 2
- Sort Get-ParameterInfo output HOT 1
- Get-CommandSyntax by provider HOT 1
- Get-GitSize failing to return a value. HOT 1
- [Bug]: Unable to install HOT 4
- [Bug]: Get-WindowsVersion/Get-WindowsVersionString on non-English based systems HOT 6
- [Bug]: Convert-EventLogRecord Fails to Parse Bits-Client XML due to Id value HOT 2
- [Bug]: Conflict with NTFSSecurity module causes PSScriptTools to fail to import HOT 2
- ANSI style on powershell 7 when PSStyle is defined HOT 2
- [Request]: Improved usage of Get-ModuleCommand HOT 2
- Get-PSUnique enhancement HOT 2
- [Bug]: Invoke-RestMethod error on Get-WhoIs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from psscripttools.