You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use [Get-WinEvent](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.diagnostics/get-winevent?view=powershell-7&WT.mc_id=ps-gethelp), the results are objects you can work with in PowerShell.
@@ -115,13 +164,43 @@ This example compares modules and send results to `Out-Gridview`. Use `Out-Gridv
115
164
This is a PowerShell version of the `winver.exe` utility. This command uses PowerShell remoting to query the registry on a remote machine to retrieve Windows version information.
Use this command to quickly get the size of a folder. You also have an option to include hidden files. The command will measure all files in all subdirectories. The command includes a format file with additional view to display the total size in MB or GB.
399
+
Use this command to quickly get the size of a folder. You also have an option to include hidden files. The command will measure all files in all subdirectories.
400
+
401
+
```powershell
402
+
PS C:\> get-foldersizeinfo c:\work
403
+
404
+
Computername Path TotalFiles TotalSize
405
+
------------ ---- ---------- ---------
406
+
BOVINE320 C:\work 931 137311146
407
+
408
+
409
+
PS C:\> get-foldersizeinfo c:\work -Hidden
410
+
411
+
Computername Path TotalFiles TotalSize
412
+
------------ ---- ---------- ---------
413
+
BOVINE320 C:\work 1375 137516856
414
+
```
415
+
416
+
The command includes a format file with additional view to display the total size in KB, MB or GB.
Use this command to clean and optimize content from text files. Sometimes text files have blank lines or the content has trailing spaces. These sorts of issues can cause problems when passing the content to other commands.
@@ -1168,4 +1280,4 @@ You will need to manually install the file.
1168
1280
1169
1281
Where possible these commands have been tested with PowerShell 7, but not every platform. If you encounter problems, have suggestions or other feedback, please post an issue. It is assumed you will __not__ be running this commands on any edition of PowerShell Core or any beta releases of PowerShell 7.
Copy file name to clipboardExpand all lines: docs/Get-FolderSizeInfo.md
+21-5
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ schema: 2.0.0
9
9
10
10
## SYNOPSIS
11
11
12
-
Get folder size information
12
+
Get folder size information.
13
13
14
14
## SYNTAX
15
15
@@ -38,7 +38,6 @@ BOVINE320 D:\temp 48
38
38
```powershell
39
39
PS C:\> Get-FolderSizeInfo -Path d:\temp -hidden
40
40
41
-
42
41
Computername Path TotalFiles TotalSize
43
42
------------ ---- ---------- ---------
44
43
BOVINE320 D:\temp 146 125655552
@@ -64,11 +63,28 @@ BOVINE320 D:\BackTemp 2
64
63
BOVINE320 D:\rip 3 11.1546
65
64
BOVINE320 D:\logs 134 3.9517
66
65
BOVINE320 D:\2016 5 1.5608
67
-
68
66
```
69
67
70
68
Get the top level directories from D and pipe them to Get-FolderSizeInfo. Items with a total size of greater an 1MB are sorted on the total size and then formatted as a table using a built-in view called MB which formats the total size in MB. There is also a view called GB.
0 commit comments