File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 1
1
<# PSScriptInfo
2
2
3
3
.Version
4
- 1.3
4
+ 1.4
5
5
.Guid
6
6
038a1c05-b1da-48c9-893d-4084b99f831b
7
7
.Author
13
13
.ExternalModuleDependencies
14
14
NetTCPIP
15
15
.ReleaseNotes
16
- Added KB articles: KB4019217, KB4019264 .
16
+ Added Name alias of PSComputerName. Fixed typo in Test-WSMan test .
17
17
18
18
#>
19
19
@@ -100,7 +100,7 @@ param (
100
100
}
101
101
})]
102
102
[Alias (
103
- " ComputerName"
103
+ " ComputerName" , " PSComputerName "
104
104
)]
105
105
[String []]
106
106
$Name = $env: COMPUTERNAME ,
@@ -211,7 +211,7 @@ process {
211
211
foreach ($nameValue in $Name ) {
212
212
try {
213
213
$protocol = " WSMAN"
214
- $protocolTest = Test-WSMan - ComputerName $name - ErrorAction Stop
214
+ $protocolTest = Test-WSMan - ComputerName $nameValue - ErrorAction Stop
215
215
if ($null -eq $protocolTest -or $protocol.ProductVersion -contains " Stack: 2.0" ) {
216
216
$protocol = " DCOM"
217
217
}
Original file line number Diff line number Diff line change @@ -146,11 +146,9 @@ param (
146
146
[String ]
147
147
$IPAddress ,
148
148
149
- [Parameter (
150
- Mandatory = $true
151
- )]
149
+ [Parameter ()]
152
150
[String ]
153
- $DefaultGateway ,
151
+ $DefaultGateway = [ String ]::Empty ,
154
152
155
153
[Parameter (
156
154
Mandatory = $true
You can’t perform that action at this time.
0 commit comments