Skip to content

Commit 05d50b0

Browse files
v2.48.0
1 parent 4dae6b4 commit 05d50b0

12 files changed

+354
-204
lines changed

Archive-ChangeLog.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,26 @@
22

33
This file contains older change history. It is maintained for reference purposes.
44

5+
## v2.42.0
6+
7+
- Updated module manifest to load required .NET assembly for `Convert-HTMLtoAnsi`. [Issue #124](https://github.com/jdhitsolutions/PSScriptTools/issues/124)
8+
- Updated `Show-AnsiSequence` to fix a display bug that was dropping values. [Issue #125](https://github.com/jdhitsolutions/PSScriptTools/issues/125)
9+
- Updated missing online help links.
10+
- Added new sample script `today.ps1`.
11+
- Help updates.
12+
- Updated `README.md`.
13+
14+
## v2.41.0
15+
16+
- Added function `Copy-CommandHistory` with an alias of `ch`.
17+
- Updated `Out-Copy` to ignore ANSI unless specified. [Issue #118](https://github.com/jdhitsolutions/PSScriptTools/issues/118)
18+
- Added an alias of `oc` for `Out-Copy`.
19+
- Updated `New-PSFormatXML` to fix ReadOnly property error. [Issue #121](https://github.com/jdhitsolutions/PSScriptTools/issues/121)
20+
- Updated `Get-ModuleCommand` to include version information and to accept pipeline input.
21+
- Updated `modulecommand.format.ps1xml` with a new table view called `version`.
22+
- Updated missing online help links.
23+
- Updated `README.md`.
24+
525
## v2.40.0
626

727
- Updated parameter validation for IP address in `Get-WhoIs` to allow addresses with 255 in an octet. [Issue #117](https://github.com/jdhitsolutions/PSScriptTools/issues/117).

PSScriptToolsManual.pdf

164 KB
Binary file not shown.

changelog.md

Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33
This file contains the most recent change history for the PSScriptTools module.
44

5+
## v2.48.0
6+
7+
### Added
8+
9+
- Added parameter `ProviderName` to `Get-CommandSyntax to let the user specify a provider.`[Issue #139](https://github.com/jdhitsolutions/PSScriptTools/issues/139)
10+
11+
### Changed
12+
13+
- Modified `Get-ParameterInfo` to sort output by parameter set. [Issue #138](https://github.com/jdhitsolutions/PSScriptTools/issues/138)
14+
- Modified the format file for `psparameterinfo` objects to use a table as the default.
15+
- Added `EnumOnly` parameter to `Get-TypeMember` [Issue #135](https://github.com/jdhitsolutions/PSScriptTools/issues/135)
16+
- Help updates
17+
518
## v2.47.0
619

720
### Changed
@@ -68,26 +81,6 @@ This file contains the most recent change history for the PSScriptTools module.
6881
- Help updates.
6982
- Updated `README.md`.
7083

71-
## v2.42.0
72-
73-
- Updated module manifest to load required .NET assembly for `Convert-HTMLtoAnsi`. [Issue #124](https://github.com/jdhitsolutions/PSScriptTools/issues/124)
74-
- Updated `Show-AnsiSequence` to fix a display bug that was dropping values. [Issue #125](https://github.com/jdhitsolutions/PSScriptTools/issues/125)
75-
- Updated missing online help links.
76-
- Added new sample script `today.ps1`.
77-
- Help updates.
78-
- Updated `README.md`.
79-
80-
## v2.41.0
81-
82-
- Added function `Copy-CommandHistory` with an alias of `ch`.
83-
- Updated `Out-Copy` to ignore ANSI unless specified. [Issue #118](https://github.com/jdhitsolutions/PSScriptTools/issues/118)
84-
- Added an alias of `oc` for `Out-Copy`.
85-
- Updated `New-PSFormatXML` to fix ReadOnly property error. [Issue #121](https://github.com/jdhitsolutions/PSScriptTools/issues/121)
86-
- Updated `Get-ModuleCommand` to include version information and to accept pipeline input.
87-
- Updated `modulecommand.format.ps1xml` with a new table view called `version`.
88-
- Updated missing online help links.
89-
- Updated `README.md`.
90-
9184
## Archive
9285

9386
If you need to see older change history, look at the [Archive ChangeLog](https://github.com/jdhitsolutions/PSScriptTools/blob/master/Archive-ChangeLog.md) online.

docs/Get-CommandSyntax.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Get provider-specific command syntax.
1414
## SYNTAX
1515

1616
```yaml
17-
Get-CommandSyntax [-Name] <String> [<CommonParameters>]
17+
Get-CommandSyntax [-Name] <String> [-ProviderName <String>] [<CommonParameters>]
1818
```
1919

2020
## DESCRIPTION
@@ -73,6 +73,22 @@ Accept pipeline input: False
7373
Accept wildcard characters: False
7474
```
7575
76+
### -ProviderName
77+
78+
Enter a specific provider name. The default is all currently loaded providers.
79+
80+
```yaml
81+
Type: String
82+
Parameter Sets: (All)
83+
Aliases:
84+
85+
Required: False
86+
Position: Named
87+
Default value: None
88+
Accept pipeline input: False
89+
Accept wildcard characters: False
90+
```
91+
7692
### CommonParameters
7793
7894
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).

docs/Get-ParameterInfo.md

Lines changed: 84 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -27,53 +27,37 @@ Using Get-Command, this function will return information about parameters for an
2727
### EXAMPLE 1
2828

2929
```powershell
30-
PS C:\> Get-ParameterInfo Get-Service
30+
PS C:\> Get-ParameterInfo Export-Clixml
3131
32+
ParameterSet: __AllParameterSets
3233
33-
ParameterSet: Default
34-
35-
36-
Name : Name
37-
Aliases : ServiceName
38-
Mandatory : False
39-
IsDynamic : False
40-
Position : 0
41-
Type : System.String[]
42-
ValueFromPipeline : True
43-
ValueFromPipelineByPropertyName : True
44-
34+
Name Aliases Mandatory Position Type
35+
---- ------- --------- -------- ----
36+
Depth False Named System.Int32
37+
InputObject True Named System.Management.Automation.PSObject
38+
Force False Named System.Management.Automation.SwitchParamet…
39+
NoClobber NoOverwrite False Named System.Management.Automation.SwitchParamet…
40+
Encoding False Named System.Text.Encoding
4541
42+
ParameterSet: ByLiteralPath
4643
47-
ParameterSet: __AllParameterSets
44+
Name Aliases Mandatory Position Type
45+
---- ------- --------- -------- ----
46+
LiteralPath PSPath,LP True Named System.String
4847
48+
ParameterSet: ByPath
4949
50-
Name : ComputerName
51-
Aliases : Cn
52-
Mandatory : False
53-
IsDynamic : False
54-
Position : Named
55-
Type : System.String[]
56-
ValueFromPipeline : False
57-
ValueFromPipelineByPropertyName : True
58-
59-
Name : DependentServices
60-
Aliases : DS
61-
Mandatory : False
62-
IsDynamic : False
63-
Position : Named
64-
Type : System.Management.Automation.SwitchParameter
65-
ValueFromPipeline : False
66-
ValueFromPipelineByPropertyName : False
67-
...
50+
Name Aliases Mandatory Position Type
51+
---- ------- --------- -------- ----
52+
Path True 0 System.String
6853
```
6954

70-
Return parameter information for Get-Service using the default list view.
55+
Return parameter information for Export-Clixml using the default table view.
7156

7257
### EXAMPLE 2
7358

7459
```powershell
75-
PS C:\> Get-ParameterInfo mkdir |
76-
Select-Object Name,Type,Position,parameterset
60+
PS C:\> Get-ParameterInfo mkdir | Select-Object Name,Type,Position,parameterset
7761
7862
Name Type Position ParameterSet
7963
---- ---- -------- ------------
@@ -91,29 +75,80 @@ Get selected parameter information for the mkdir command.
9175
### EXAMPLE 3
9276

9377
```powershell
94-
PS C:\> Get-ParameterInfo Test-WSMan | Sort Parameterset | Format-Table
95-
78+
PS C:\> Get-ParameterInfo Test-WSMan | Format-List
9679
9780
ParameterSet: __AllParameterSets
9881
99-
Name Aliases Mandatory Position Type
100-
---- ------- --------- -------- ----
101-
CertificateThumbprint False Named System.String
102-
Credential cred,c False Named System.Management.Automati...
103-
ComputerName cn False 0 System.String
104-
Authentication auth,am False Named Microsoft.WSMan.Management....
82+
Name : ComputerName
83+
Aliases : cn
84+
Mandatory : False
85+
IsDynamic : False
86+
Position : 0
87+
Type : System.String
88+
ValueFromPipeline : True
89+
ValueFromPipelineByPropertyName : False
90+
91+
Name : Authentication
92+
Aliases : auth,am
93+
Mandatory : False
94+
IsDynamic : False
95+
Position : Named
96+
Type : Microsoft.WSMan.Management.AuthenticationMecha
97+
nism
98+
ValueFromPipeline : False
99+
ValueFromPipelineByPropertyName : False
100+
101+
Name : Credential
102+
Aliases : cred,c
103+
Mandatory : False
104+
IsDynamic : False
105+
Position : Named
106+
Type : System.Management.Automation.PSCredential
107+
ValueFromPipeline : False
108+
ValueFromPipelineByPropertyName : True
109+
110+
Name : CertificateThumbprint
111+
Aliases :
112+
Mandatory : False
113+
IsDynamic : False
114+
Position : Named
115+
Type : System.String
116+
ValueFromPipeline : False
117+
ValueFromPipelineByPropertyName : False
105118
106119
107120
ParameterSet: ComputerName
108121
109-
Name Aliases Mandatory Position Type
110-
---- ------- --------- -------- ----
111-
UseSSL False Named System.Management.Automation.Swit...
112-
Port False Named System.Int32
113-
ApplicationName False Named System.String
122+
Name : Port
123+
Aliases :
124+
Mandatory : False
125+
IsDynamic : False
126+
Position : Named
127+
Type : System.Int32
128+
ValueFromPipeline : False
129+
ValueFromPipelineByPropertyName : False
130+
131+
Name : UseSSL
132+
Aliases :
133+
Mandatory : False
134+
IsDynamic : False
135+
Position : Named
136+
Type : System.Management.Automation.SwitchParameter
137+
ValueFromPipeline : False
138+
ValueFromPipelineByPropertyName : False
139+
140+
Name : ApplicationName
141+
Aliases :
142+
Mandatory : False
143+
IsDynamic : False
144+
Position : Named
145+
Type : System.String
146+
ValueFromPipeline : False
147+
ValueFromPipelineByPropertyName : False
148+
114149
```
115150

116-
Get all parameters from Test-WSMan and display details as a formatted table. The object type from Get-ParameterInfo has a default table view.
151+
Get all parameters from Test-WSMan and display details as a list.
117152

118153
### Example 4
119154

0 commit comments

Comments
 (0)