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
Copy file name to clipboardExpand all lines: README.md
+19-10Lines changed: 19 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,14 @@ or in PowerShell Core:
16
16
Install-Module PSScriptTools -scope currentuser
17
17
```
18
18
19
-
Please post any questions, problems or feedback in Issues. Any input is greatly appreciated.
19
+
Starting in v2.2.0, the module was restructured to better support Desktop and Core editions. It is recommended that you uninstall any version older than 2.2.0 and then install the latest version from the PowerShell Gallery.
20
+
21
+
```powershell
22
+
Uninstall-Module PSScriptTools -allversions
23
+
```
24
+
Any command that uses WPF will not run on PowerShell Core and is not exported.
25
+
26
+
Please post any questions, problems or feedback in [Issues](https://github.com/jdhitsolutions/PSScriptTools/issues). Any input is greatly appreciated.
20
27
21
28
## [Add-Border](docs/Add-Border.md)
22
29
@@ -565,20 +572,20 @@ Use this command to compare module versions between what is installed against an
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.
@@ -587,7 +594,8 @@ This command is a variation of `Get-WindowsVersion` that returns a formatted str
587
594
588
595
```powershell
589
596
PS C:\> Get-WindowsVersionString
590
-
Windows 10 Pro Version 1809 (OS Build 17763.195)
597
+
BOVINE320 Windows 10 Pro Version Professional (OS Build 17763.253)
598
+
591
599
```
592
600
593
601
## [New-PSFormatXML](docs/New-PSFormatXML.md)
@@ -679,11 +687,12 @@ Position : Named
679
687
ValueFromPipeline : False
680
688
ValueFromPipelineByPropertyName : False
681
689
Type : System.String[]
690
+
IsDynamic : False
682
691
ParameterSet : __AllParameterSets
683
692
```
684
693
685
694
## Compatibility
686
695
687
696
Where possible these commands have been tested with PowerShell Core, but not every platform. If you encounter problems, have suggestions or other feedback, please post an issue.
This command will create a character or text based border around a line of text.
31
-
You might use this to create a formatted text report or to improve the display of information to the screen.
30
+
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.
32
31
33
32
## EXAMPLES
34
33
@@ -140,7 +139,7 @@ Insert blank lines before and after the text. The default behavior is to create
This command is an alternative to Out-Gridview. It works much the same way. Run a PowerShell command and pipe it to this command. The output will be displayed in an autosized data grid. You can click on column headings to sort. You can resize columns and you can re-order columns. You will want to be selective about which properties you pipe through to this command. See examples.
24
24
25
-
You can specify a timeout value which will automatically close the form. If you specify a timeout and the Refresh parameter, then the contents of the datagrid will automatically refreshed using the timeout value as an integer. This will only work when you pipe a PowerShell expression to ConvertTo-WPFGrid.
25
+
You can specify a timeout value which will automatically close the form. If you specify a timeout and the Refresh parameter, then the contents of the datagrid will automatically refreshed using the timeout value as an integer. This will only work when you pipe a PowerShell expression to ConvertTo-WPFGrid as one command. This will fail if you break the command in the PowerShell ISE or use a nested prompt.
26
26
27
27
This command runs the WPF grid in a new runspace so your PowerShell prompt will not be blocked. However, after closing the form you may be left with the runspace. You can use Remove-Runspace to clean up or wait until you restart PowerShell.
Get Hyper-V virtual machine information and display for 20 seconds before automatically closing.
49
+
Get Hyper-V virtual machine information and display for 20 seconds before automatically closing. Note that this would be written as one long pipelined expression. It is formatted here for the sake of the help documentation.
By default the grid will remain displayed until you manually close it. But you can specify a timeout interval in seconds.
88
-
The minimum accepted value is 5 seconds. If you use this parameter with -Refresh, then the datagrid will be refreshed with results of the PowerShell expression you piped to ConvertTo-WPFGrid.
87
+
By default the grid will remain displayed until you manually close it. But you can specify a timeout interval in seconds. The minimum accepted value is 5 seconds. If you use this parameter with -Refresh, then the datagrid will be refreshed with results of the PowerShell expression you piped to ConvertTo-WPFGrid.
This function is designed to search an entire CIM repository for a class name. Sometimes, you may have a guess about a class name but not know the full name or even the correct namespace. `Find-CimClass` will recursively search for a given classname. You can use wildcards and search remote computers.
22
+
This function is designed to search an entire CIM repository for a class name. Sometimes, you may have a guess about a class name but not know the full name or even the correct namespace. Find-CimClass will recursively search for a given classname. You can use wildcards and search remote computers.
This sample function dot sources the script with this function. Within the function, Get-MyVariable is called specifying scope 1, or the parent scope. Scope 0 would be the scope of the Get-MyVariable function. Here's the result.
73
70
74
-
PS S:\> foo
71
+
PS C:\> foo
75
72
VERBOSE: Getting system defined variables
76
73
VERBOSE: Found 49
77
74
VERBOSE: Getting current variables in 1 scope
@@ -85,6 +82,8 @@ b 2
85
82
c 8
86
83
VERBOSE: Finished getting my variables
87
84
8
85
+
```
86
+
This sample function dot sources the script with this function. Within the function, Get-MyVariable is called specifying scope 1, or the parent scope. Scope 0 would be the scope of the Get-MyVariable function. Here's the result.
0 commit comments