File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -166,6 +166,30 @@ Port445Enabled : True
166
166
167
167
---
168
168
169
+ ### Get-FolderSize
170
+ Enumerates all sub folders and file of a directory returning the entire folder structure size.
171
+
172
+ ```
173
+ PS C:\> Get-FolderSize -Path C:\Users\tomohulk\Documents
174
+
175
+ Path Size(MB)
176
+ ---- --------
177
+ C:\Users\tomohulk\Documents 9732.33304
178
+
179
+
180
+ PS C:\> Get-ChildItem -Path C:\Usuers\tomohulk\Documents -Directory | Get-FolderSize -Unit MB
181
+
182
+ Path Size(MB)
183
+ ---- --------
184
+ C:\Users\tomohulk\Documents\Custom Office Templates 0
185
+ C:\Users\tomohulk\Documents\GitHub 211.29266
186
+ C:\Users\tomohulk\Documents\GitLab 4.45472
187
+ C:\Users\tomohulk\Documents\My Received Files 0.24156
188
+ C:\Users\tomohulk\Documents\WindowsPowerShell 0.07872
189
+ ```
190
+
191
+ ---
192
+
169
193
### Get-ItemExtendedAttribute
170
194
Get extended item metadeta attribute value from an item using COM and referenced by attribute number.
171
195
You can’t perform that action at this time.
0 commit comments