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
This module contains a collection of functions, variables and format files that you can use to enhance your PowerShell scripting work, or get more done from a PowerShell prompt with less typing. Most of the commands are designed to work cross-platform. Please post any questions, problems, or feedback in [Issues](https://github.com/jdhitsolutions/PSScriptTools/issues). Any feedback is greatly appreciated.
5
+
## Abstract
6
+
7
+
This module contains a collection of functions, variables, and format files that you can use to enhance your PowerShell scripting work, or get more done from a PowerShell prompt with less typing. Most of the commands are designed to work cross-platform. Please post any questions, problems, or feedback at [Issues](https://github.com/jdhitsolutions/PSScriptTools/issues). Any feedback is greatly appreciated.
8
+
9
+
The contents of this file and other documentation can be viewed using the `Open-PSScriptToolsHelp` command. You can also use `Get-PSScriptTools` to see a summary of module commands.
6
10
7
11
*Please note that code samples have been formatted to fit an 80 character width. Some example code breaks lines without using line continuation characters. I'm trusting that you can figure out how to run the example.*
8
12
@@ -41,9 +45,7 @@ Starting in v2.2.0, the module was restructured to better support `Desktop` and
41
45
42
46
It is recommended to install this module from the PowerShell Gallery and not GitHub.
43
47
44
-
### Uninstall the Module
45
-
46
-
To remove the module from your system you can uninstall it.
48
+
To remove the module from your system you can easily uninstall it with common PowerShell commands.
47
49
48
50
```powershell
49
51
Get-Module PSScriptTools | Remove-Module
@@ -1181,7 +1183,7 @@ Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName
1181
1183
118 8 1580 7476 0.02 35668 0 svchost
1182
1184
```
1183
1185
1184
-
These custom Select commands are not necessarily designed for peformance and there may be better ways to achieve the same results from these examples.
1186
+
These custom Select commands are not necessarily designed for performance and there may be better ways to achieve the same results from these examples.
1185
1187
1186
1188
## Time Functions
1187
1189
@@ -1373,7 +1375,7 @@ Expect a period of trial and error to find a good font that works with your text
1373
1375
1374
1376
This command is intended for writers and those who need to document with PowerShell. You can pipe any command to this function and you will get the regular output in your PowerShell session.Simultaneously a copy of the output will be sent to the Windows clipboard. The copied output will include a prompt constructed from the current location unless you use the CommandOnly parameter.
@@ -2177,4 +2179,4 @@ If you find this module useful, you might also want to look at my PowerShell too
2177
2179
2178
2180
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](https://github.com/jdhitsolutions/PSScriptTools/issues). It is assumed you will __not__ be running these commands on any edition of PowerShell Core or any beta releases of PowerShell 7.
This command is designed to accept pipelined output and create a markdown document. The pipeline output will formatted as a text block or you can specify a table. You can optionally define a title, content to appear before the output and content to appear after the output.
24
+
This command is designed to accept pipelined output and create a generic markdown document. The pipeline output will formatted as a text block or you can specify a table. You can optionally define a title, content to appear before the output, and content to appear after the output. Best efforts have been made to produce markdown output that meets basic standards.
25
25
26
26
The command does not create a text file. You need to pipe results from this command to a cmdlet like Out-File or Set-Content. See examples.
This command will launch a PDF manual for all commands in the PSScriptTools module. It is assumed you have a default application for PDF files.
22
+
This command will launch a PDF manual for all commands in the PSScriptTools module. It is assumed you have a default application associated with PDF files.
This command is intended for writers and those who need to document with PowerShell.
24
-
You can pipe any command to this function and you will get the regular output in your PowerShell session.
25
-
Simultaneously a copy of the output will be sent to the Windows clipboard.
26
-
The copied output will include a prompt constructed from the current location unless you use the CommandOnly parameter.
23
+
This command is intended for writers and those who need to document with PowerShell. You can pipe any command to this function and you will get the regular output in your PowerShell session. Simultaneously, a copy of the output will be sent to the Windows clipboard. The copied output will include a prompt constructed from the current location unless you use the CommandOnly parameter.
27
24
28
-
NOTE: You can only capture what is written to the Success pipeline.
29
-
This command will not copy any other streams such as Verbose, Warning, or Error.
25
+
NOTE: You can only capture what is written to the Success pipeline. This command will not copy any other streams such as Verbose, Warning, or Error.
This function is designed to display groups or "pages" of objects to the PowerShell pipeline. It is modeled after the legacy More.com commandline utility. By default the command will write out objects out to the pipeline in groups of 50. You will be prompted after each grouping.
22
+
This function is designed to display groups or "pages" of objects to the PowerShell pipeline. It is modeled after the legacy More.com command-line utility. By default, the command will write objects out to the pipeline in groups of 50. You will be prompted after each grouping.
23
23
24
24
Pressing M or Enter will get the next group. Pressing A will stop paging and display all of the remaining objects. Pressing N will display the next object. Press Q to stop writing anything else to the pipeline.
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 include a fulltime stamp, or a time string which includes a millisecond value.
38
+
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 Begin, Process and End scriptblocks. You can create a detailed message to indicate what part of the code is being executed. The output can include a full-time stamp, or a time string which includes a millisecond value.
39
39
40
40
In a script you might use it like this in a Begin block:
Copy file name to clipboardExpand all lines: en-us/PSScriptTools-help.xml
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -2445,7 +2445,7 @@ Thursday, March 14, 2019 4:00:00 PM</dev:code>
2445
2445
</maml:description>
2446
2446
</command:details>
2447
2447
<maml:description>
2448
-
<maml:para>This command is designed to accept pipelined output and create a markdown document. The pipeline output will formatted as a text block or you can specify a table. You can optionally define a title, content to appear before the output and content to appear after the output.</maml:para>
2448
+
<maml:para>This command is designed to accept pipelined output and create a generic markdown document. The pipeline output will formatted as a text block or you can specify a table. You can optionally define a title, content to appear before the output, and content to appear after the output. Best efforts have been made to produce markdown output that meets basic standards.</maml:para>
2449
2449
<maml:para>The command does not create a text file. You need to pipe results from this command to a cmdlet like Out-File or Set-Content. See examples.</maml:para>
2450
2450
</maml:description>
2451
2451
<command:syntax>
@@ -2466,7 +2466,7 @@ Thursday, March 14, 2019 4:00:00 PM</dev:code>
<maml:para>Gets data from the specified performance counters. Enter one or more counter paths. Wildcards are permitted only in the Instance value. You can also pipe counter path strings to Get-MyCounter.</maml:para>
6113
6113
<maml:para> Each counter path has the following format:</maml:para>
<maml:para>Gets data from the specified performance counters. Enter one or more counter paths. Wildcards are permitted only in the Instance value. You can also pipe counter path strings to Get-MyCounter.</maml:para>
6204
6204
<maml:para> Each counter path has the following format:</maml:para>
<maml:para>This function is designed to display groups or "pages" of objects to the PowerShell pipeline. It is modeled after the legacy More.com commandline utility. By default the command will write out objects out to the pipeline in groups of 50. You will be prompted after each grouping.</maml:para>
11935
+
<maml:para>This function is designed to display groups or "pages" of objects to the PowerShell pipeline. It is modeled after the legacy More.com command-line utility. By default, the command will write objects out to the pipeline in groups of 50. You will be prompted after each grouping.</maml:para>
11936
11936
<maml:para>Pressing M or Enter will get the next group. Pressing A will stop paging and display all of the remaining objects. Pressing N will display the next object. Press Q to stop writing anything else to the pipeline.</maml:para>
11937
11937
<maml:para>Note that you may encounter an error message when quitting prematurely, especially on non-Windows platforms. You can ignore these errors.</maml:para>
<maml:para>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 include a fulltime stamp, or a time string which includes a millisecond value.</maml:para>
16314
+
<maml:para>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 Begin, Process and End scriptblocks. You can create a detailed message to indicate what part of the code is being executed. The output can include a full-time stamp, or a time string which includes a millisecond value.</maml:para>
16315
16315
<maml:para>In a script you might use it like this in a Begin block:</maml:para>
0 commit comments