Skip to content

Commit a59220c

Browse files
Changed match to like.
1 parent 6420e10 commit a59220c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/VirtualMachines/Setup-Windows11VM-VHD.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ function Test-HyperVSupport {
196196
$unsupportedEditions = @('Home', 'Home Single Language', 'Home Country Specific', 'Home Basic', 'Home Premium')
197197

198198
foreach ($unsupported in $unsupportedEditions) {
199-
if ($edition -match $unsupported) {
199+
if ($edition -like "*$unsupported*") {
200200
return $false
201201
}
202202
}

0 commit comments

Comments
 (0)