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
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.
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.
@@ -1082,6 +1103,10 @@ Runtime : 40.21:12:01
1082
1103
1083
1104
If you run this command within VS Code and specify `-Passthru`, the resulting file will be opened in your editor.
1084
1105
1106
+
### [Test-IsPSWindows](docs/Test-IsPSWindows.md)
1107
+
1108
+
PowerShell Core introduced the `$IsWindows` variable. However it is not available on Windows PowerShell. Use this command to perform a simple test if the computer is either running Windows or using the Desktop PSEdition. The command returns True or False.
1109
+
1085
1110
### [Write-Detail](docs/Write-Detail.md)
1086
1111
1087
1112
This command is designed to be used within your functions and scripts to make it easier to write a detailed message that you can use as verbose output. The assumption is that you are using an advanced function with a Begin, Process and End scriptblocks. You can create a detailed message to indicate what part of the code is being executed. The output can be configured to include a datetime stamp or just the time.
@@ -1122,4 +1147,4 @@ You will need to manually install the file.
1122
1147
1123
1148
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: changelog.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,14 @@
1
1
# Change Log for PSScriptTools
2
2
3
+
## v2.15.0
4
+
5
+
+ Added `Get-FolderSizeInfo` and its alias `gsi` along with a corresponding format.ps1xml file.
6
+
+ Fixed IsWindows bug in `New-WPFMessageBox` (Issue #59)
7
+
+ Fixed IsWindows bug in `Convertto-WPFGrid`, `Find-CimClass`, `Test-ExpressionForm`, `Get-WindowsVersion`,`Get-WindowsVersionString` and `Invoke-InputBox` by using a new function `Test-IsPSWindows`
8
+
+ Updated `Get-PSWho` to better work cross-platform
9
+
+ Help updates
10
+
+ Updated `README.md`
11
+
3
12
## v2.14.1
4
13
5
14
+ Fixed bug in `Save-GitSetup` that relies on `$IsWindows` (Issue #58). Now this command should work on Windows PowerShell 5.1 as well.
This command is an alternative to discovering the size of a folder, or at least an easier method. Use the -Hidden parameter to include hidden files in the output. The measurement will include all files in all subfolders.
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.
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
PowerShell Core introduced the $IsWindows variable. However it is not available on Windows PowerShell. Use this command to perform a simple test if the computer is either running Windows or using the Desktop PSEdition.
23
+
24
+
## EXAMPLES
25
+
26
+
### Example 1
27
+
28
+
```powershell
29
+
PS C:\> Test-IsPSWindows
30
+
True
31
+
```
32
+
33
+
## PARAMETERS
34
+
35
+
### CommonParameters
36
+
37
+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
38
+
39
+
## INPUTS
40
+
41
+
### None
42
+
43
+
## OUTPUTS
44
+
45
+
### System.Boolean
46
+
47
+
## NOTES
48
+
49
+
Learn more about PowerShell: http://jdhitsolutions.com/blog/essential-powershell-resources/
0 commit comments