@@ -33,6 +33,8 @@ $script:CompatibilityTestCases = @(
33
33
@ { Target = $script :Srv2012_3_profile ; Script = ' Get-FileHash $pshome\powershell.exe | Format-List' ; Commands = @ (" Get-FileHash" ); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 1 }
34
34
@ { Target = $script :Srv2012_3_profile ; Script = ' Get-ChildItem ./ | Format-List' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
35
35
@ { Target = $script :Srv2012_3_profile ; Script = ' Save-Help -Module $m -DestinationPath "C:\SavedHelp"' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
36
+ @ { Target = $script :Srv2012_3_profile ; Script = ' gci .' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
37
+ @ { Target = $script :Srv2012_3_profile ; Script = ' iex $expr | % { Transform $_ }' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
36
38
37
39
@ { Target = $script :Srv2012r2_4_profile ; Script = ' Write-Information "Information"' ; Commands = @ (" Write-Information" ); Version = " 4.0" ; OS = " Windows" ; ProblemCount = 1 }
38
40
@ { Target = $script :Srv2012r2_4_profile ; Script = ' "Hello World" | ConvertFrom-String | Get-Member' ; Commands = @ (" ConvertFrom-String" ); Version = " 4.0" ; OS = " Windows" ; ProblemCount = 1 }
@@ -48,11 +50,16 @@ $script:CompatibilityTestCases = @(
48
50
@ { Target = $script :Srv2012r2_4_profile ; Script = ' Start-Job { Write-Host "Hello" } | Debug-Job' ; Commands = @ (" Debug-Job" ); Version = " 4.0" ; OS = " Windows" ; ProblemCount = 1 }
49
51
@ { 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 }
50
52
@ { Target = $script :Srv2012r2_4_profile ; Script = ' Get-ChildItem ./ | Format-List' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
53
+ @ { Target = $script :Srv2012r2_4_profile ; Script = ' gci .' ; Commands = @ (); Version = " 4.0" ; OS = " Windows" ; ProblemCount = 0 }
54
+ @ { Target = $script :Srv2012r2_4_profile ; Script = ' iex $expr | % { Transform $_ }' ; Commands = @ (); Version = " 4.0" ; OS = " Windows" ; ProblemCount = 0 }
51
55
52
56
@ { Target = $script :Srv2019_5_profile ; Script = " Remove-Alias gcm" ; Commands = @ (" Remove-Alias" ); Version = " 5.1" ; OS = " Windows" ; ProblemCount = 1 }
53
57
@ { Target = $script :Srv2019_5_profile ; Script = " Get-Uptime" ; Commands = @ (" Get-Uptime" ); Version = " 5.1" ; OS = " Windows" ; ProblemCount = 1 }
54
58
@ { Target = $script :Srv2019_5_profile ; Script = " Remove-Service 'MyService'" ; Commands = @ (" Remove-Service" ); Version = " 5.1" ; OS = " Windows" ; ProblemCount = 1 }
55
59
@ { Target = $script :Srv2019_5_profile ; Script = ' Get-ChildItem ./ | Format-List' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
60
+ @ { Target = $script :Srv2019_5_profile ; Script = ' gci .' ; Commands = @ (); Version = " 5.1" ; OS = " Windows" ; ProblemCount = 0 }
61
+ @ { Target = $script :Srv2019_5_profile ; Script = ' iex $expr | % { Transform $_ }' ; Commands = @ (); Version = " 5.1" ; OS = " Windows" ; ProblemCount = 0 }
62
+ @ { Target = $script :Srv2019_5_profile ; Script = ' fhx $filePath' ; Commands = @ (); Version = " 5.1" ; OS = " Windows" ; ProblemCount = 0 }
56
63
57
64
@ { Target = $script :Srv2019_6_1_profile ; Script = " Add-PSSnapIn MySnapIn" ; Commands = @ (" Add-PSSnapIn" ); Version = " 6.1" ; OS = " Windows" ; ProblemCount = 1 }
58
65
@ { Target = $script :Srv2019_6_1_profile ; Script = ' ConvertFrom-String $str' ; Commands = @ (" ConvertFrom-String" ); Version = " 6.1" ; OS = " Windows" ; ProblemCount = 1 }
@@ -85,13 +92,17 @@ $script:CompatibilityTestCases = @(
85
92
@ { 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 }
86
93
@ { Target = $script :Srv2019_6_1_profile ; Script = ' curl $uri' ; Commands = @ (" curl" ); Version = " 6.1" ; OS = " Windows" ; ProblemCount = 1 }
87
94
@ { Target = $script :Srv2019_6_1_profile ; Script = ' Get-ChildItem ./ | Format-List' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
95
+ @ { Target = $script :Srv2019_6_1_profile ; Script = ' gci .' ; Commands = @ (); Version = " 6.1" ; OS = " Windows" ; ProblemCount = 0 }
96
+ @ { Target = $script :Srv2016_6_1_profile ; Script = ' iex $expr | % { Transform $_ }' ; Commands = @ (); Version = " 6.1" ; OS = " Windows" ; ProblemCount = 0 }
88
97
89
98
@ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' Get-AuthenticodeSignature ./script.ps1' ; Commands = @ (" Get-AuthenticodeSignature" ); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 1 }
90
99
@ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' Get-Service systemd' ; Commands = @ (" Get-Service" ); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 1 }
91
100
@ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' Start-Service -Name "sshd"' ; Commands = @ (" Start-Service" ); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 1 }
92
101
@ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' Get-PSSessionConfiguration -Name Full | Format-List -Property *' ; Commands = @ (" Get-PSSessionConfiguration" ); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 1 }
93
102
@ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' Get-CimInstance Win32_StartupCommand' ; Commands = @ (" Get-CimInstance" ); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 1 }
94
- @ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' Get-ChildItem ./ | Format-List' ; Commands = @ (); Version = " 3.0" ; OS = " Windows" ; ProblemCount = 0 }
103
+ @ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' Get-ChildItem ./ | Format-List' ; Commands = @ (); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 0 }
104
+ @ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' gci .' ; Commands = @ (); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 0 }
105
+ @ { Target = $script :Ubuntu1804_6_1_profile ; Script = ' iex $expr | % { Transform $_ }' ; Commands = @ (); Version = " 6.1" ; OS = " Linux" ; ProblemCount = 0 }
95
106
)
96
107
97
108
$script :ParameterCompatibilityTestCases = @ (
0 commit comments