diff --git a/playbook/shopfloor-setup/Collect-ImagingDiagnostics.ps1 b/playbook/shopfloor-setup/Collect-ImagingDiagnostics.ps1 index a11c3ee..0534fa3 100644 --- a/playbook/shopfloor-setup/Collect-ImagingDiagnostics.ps1 +++ b/playbook/shopfloor-setup/Collect-ImagingDiagnostics.ps1 @@ -188,7 +188,7 @@ Section 'autostart.txt' { foreach ($n in $props.Property) { $v = (Get-ItemProperty $k -Name $n).$n $state = if ($v -is [byte[]] -and $v.Length -ge 1) { - switch ($v[0]) { 2 {'ENABLED'} 6 {'ENABLED'} 3 {'disabled'} 7 {'disabled'} default {"unknown(0x{0:X2})" -f $v[0]} } + switch ($v[0]) { 2 {'ENABLED'} 4 {'ENABLED'} 6 {'ENABLED'} 3 {'disabled'} 5 {'disabled'} 7 {'disabled'} default {"unknown(0x{0:X2})" -f $v[0]} } } else { 'unknown' } "{0,-10} {1}" -f $state, $n }