@@ -36,6 +36,8 @@ $script:CompatibilityTestCases = @(
36
36
@ { Target = $script :Srv2012_3_profile ; Script = ' Get-FileHash $pshome\powershell.exe | Format-List' ; Commands = @ (" Get-FileHash" ); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 1 }
37
37
@ { Target = $script :Srv2012_3_profile ; Script = ' Get-ChildItem ./ | Format-List' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
38
38
@ { Target = $script :Srv2012_3_profile ; Script = ' Save-Help -Module $m -DestinationPath "C:\SavedHelp"' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
39
+ @ { Target = $script :Srv2012_3_profile ; Script = ' gci .' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
40
+ @ { Target = $script :Srv2012_3_profile ; Script = ' iex $expr | % { Transform $_ }' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
39
41
40
42
@ { Target = $script :Srv2012r2_4_profile ; Script = ' Write-Information "Information"' ; Commands = @ (" Write-Information" ); Version = " 4.0" ; OS = " Windows" ; ProblemCount = 1 }
41
43
@ { Target = $script :Srv2012r2_4_profile ; Script = ' "Hello World" | ConvertFrom-String | Get-Member' ; Commands = @ (" ConvertFrom-String" ); Version = " 4.0" ; OS = " Windows" ; ProblemCount = 1 }
@@ -51,11 +53,16 @@ $script:CompatibilityTestCases = @(
51
53
@ { Target = $script :Srv2012r2_4_profile ; Script = ' Start-Job { Write-Host "Hello" } | Debug-Job' ; Commands = @ (" Debug-Job" ); Version = " 4.0" ; OS = " Windows" ; ProblemCount = 1 }
52
54
@ { Target = $script :Srv2012r2_4_profile ; Script = ' Get-ItemPropertyValue -Path HKLM:\SOFTWARE\Microsoft\PowerShell\3\PowerShellEngine -Name ApplicationBase' ; Commands = @ (" Get-ItemPropertyValue" ); Version = " 4.0" ; OS = " Windows" ; ProblemCount = 1 }
53
55
@ { Target = $script :Srv2012r2_4_profile ; Script = ' Get-ChildItem ./ | Format-List' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
56
+ @ { Target = $script :Srv2012r2_4_profile ; Script = ' gci .' ; Commands = @ (); Version = " 4.0" ; OS = " Windows" ; ProblemCount = 0 }
57
+ @ { Target = $script :Srv2012r2_4_profile ; Script = ' iex $expr | % { Transform $_ }' ; Commands = @ (); Version = " 4.0" ; OS = " Windows" ; ProblemCount = 0 }
54
58
55
59
@ { Target = $script :Srv2019_5_profile ; Script = " Remove-Alias gcm" ; Commands = @ (" Remove-Alias" ); Version = " 5.1" ; OS = " Windows" ; ProblemCount = 1 }
56
60
@ { Target = $script :Srv2019_5_profile ; Script = " Get-Uptime" ; Commands = @ (" Get-Uptime" ); Version = " 5.1" ; OS = " Windows" ; ProblemCount = 1 }
57
61
@ { Target = $script :Srv2019_5_profile ; Script = " Remove-Service 'MyService'" ; Commands = @ (" Remove-Service" ); Version = " 5.1" ; OS = " Windows" ; ProblemCount = 1 }
58
62
@ { Target = $script :Srv2019_5_profile ; Script = ' Get-ChildItem ./ | Format-List' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
63
+ @ { Target = $script :Srv2019_5_profile ; Script = ' gci .' ; Commands = @ (); Version = " 5.1" ; OS = " Windows" ; ProblemCount = 0 }
64
+ @ { Target = $script :Srv2019_5_profile ; Script = ' iex $expr | % { Transform $_ }' ; Commands = @ (); Version = " 5.1" ; OS = " Windows" ; ProblemCount = 0 }
65
+ @ { Target = $script :Srv2019_5_profile ; Script = ' fhx $filePath' ; Commands = @ (); Version = " 5.1" ; OS = " Windows" ; ProblemCount = 0 }
59
66
60
67
@ { Target = $script :Srv2019_6_1_profile ; Script = " Add-PSSnapIn MySnapIn" ; Commands = @ (" Add-PSSnapIn" ); Version = " 6.1" ; OS = " Windows" ; ProblemCount = 1 }
61
68
@ { Target = $script :Srv2019_6_1_profile ; Script = ' ConvertFrom-String $str' ; Commands = @ (" ConvertFrom-String" ); Version = " 6.1" ; OS = " Windows" ; ProblemCount = 1 }
@@ -88,13 +95,17 @@ $script:CompatibilityTestCases = @(
88
95
@ { Target = $script :Srv2019_6_1_profile ; Script = ' $zip = New-WebServiceProxy -Uri "http://www.webservicex.net/uszip.asmx?WSDL"' ; Commands = @ (" New-WebServiceProxy" ); Version = " 6.1" ; OS = " Windows" ; ProblemCount = 1 }
89
96
@ { Target = $script :Srv2019_6_1_profile ; Script = ' curl $uri' ; Commands = @ (" curl" ); Version = " 6.1" ; OS = " Windows" ; ProblemCount = 1 }
90
97
@ { Target = $script :Srv2019_6_1_profile ; Script = ' Get-ChildItem ./ | Format-List' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
98
+ @ { Target = $script :Srv2019_6_1_profile ; Script = ' gci .' ; Commands = @ (); Version = " 6.1" ; OS = " Windows" ; ProblemCount = 0 }
99
+ @ { Target = $script :Srv2016_6_1_profile ; Script = ' iex $expr | % { Transform $_ }' ; Commands = @ (); Version = " 6.1" ; OS = " Windows" ; ProblemCount = 0 }
91
100
92
101
@ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' Get-AuthenticodeSignature ./script.ps1' ; Commands = @ (" Get-AuthenticodeSignature" ); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 1 }
93
102
@ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' Get-Service systemd' ; Commands = @ (" Get-Service" ); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 1 }
94
103
@ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' Start-Service -Name "sshd"' ; Commands = @ (" Start-Service" ); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 1 }
95
104
@ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' Get-PSSessionConfiguration -Name Full | Format-List -Property *' ; Commands = @ (" Get-PSSessionConfiguration" ); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 1 }
96
105
@ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' Get-CimInstance Win32_StartupCommand' ; Commands = @ (" Get-CimInstance" ); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 1 }
97
- @ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' Get-ChildItem ./ | Format-List' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
106
+ @ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' Get-ChildItem ./ | Format-List' ; Commands = @ (); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 0 }
107
+ @ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' gci .' ; Commands = @ (); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 0 }
108
+ @ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' iex $expr | % { Transform $_ }' ; Commands = @ (); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 0 }
98
109
)
99
110
100
111
$script :ParameterCompatibilityTestCases = @ (
0 commit comments