| Module Name | PSScriptTools | |
|---|---|---|
| Module Guid | f8deaba5-5c23-43aa-a59f-f508e7369a30 | |
| Download Help Link |
|
|
| Help Version | 1.0 | |
| Locale | en-US |
This PowerShell module contains a number of functions you might use to enhance your own functions and scripts. It is intended to work with both Windows PowerShell and PowerShell Core as much as possible.
This command will create a character or text based border around a line of text. You might use this to create a formatted text report or to improve the display of information to the screen.
This command will copy a PowerShell command, including parameters and help to a new user-specified command.
This command calculates a percentage of a value from a total, with the formula (value/total)*100. The default is to return a value to 2 decimal places but you can configure that with -Decimal. There is also an option to format the percentage as a string which will include the % symbol.
Use this command to apply different types of formatting to strings such as reverse, changing case or randomization.
This command will format a given numeric value. By default it will treat the number as an integer. Or you can specify a certain number of decimal places. The command will also allow you to format the value in KB, MB, etc.
This command will provide a summary of relevant information for the current user in a PowerShell Session. You might use this to troubleshoot an end-user problem running a script or command.
This command will generate a custom file name based on a template string that you provide.
Create a new random file name. The default is a completely random name including the extension.
This command is designed to take pipeline input and display it in a colorized format,based on a set of conditions.
This command is intended to let you see your verbose output and write the verbose messages to a log file. It will only work if the verbose pipeline is enabled, usually when your command is run with -Verbose.
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.
A simple function to get common locations. This can be useful with cross-platform scripting.
Use this command to quickly get the path to the PowerShell executable with an option for detailed information.
This command provides a PowerShell alternative to the cmd.exe MORE command, which doesn't work in the PowerShell ISE. When you have screens of information, you can page it with this function.
This function is a graphical replacement for Read-Host. It creates a simple WPF form that you can use to get user input. The value of the text box will be written to the pipeline. It can be either a string or a secure string. You can customize the form's title, prompt and background color.