The reconstructed evaluation script behind this rule's OVAL check(s) — every module a compound check combines, with this rule's own concrete values and DISA's SCC tool's real per-module mechanism curated from static teardown of SCC releases.
# Windows PowerShell
# Reconstructed from oval:mil.disa.fso.windows:def:542
# Network – Mapper I/O Driver
# Per-module read mechanism curated from static teardown of DISA's SCC tool
# (SCAP Compliance Checker) -- see the SCC Automation Reference above.
# registry_object (registry_test)
function test_1 {
return (((Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'AllowLLTDIOOndomain' -ErrorAction SilentlyContinue) | Select-Object -ExpandProperty 'AllowLLTDIOOndomain') -eq 0)
}
# registry_object (registry_test)
function test_2 {
return (-not ($null -ne (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'AllowLLTDIOOndomain')))
}
# registry_object (registry_test)
function test_3 {
return (((Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'AllowLLTDIOOnPublicNet' -ErrorAction SilentlyContinue) | Select-Object -ExpandProperty 'AllowLLTDIOOnPublicNet') -eq 0)
}
# registry_object (registry_test)
function test_4 {
return (-not ($null -ne (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'AllowLLTDIOOnPublicNet')))
}
# registry_object (registry_test)
function test_5 {
return (((Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'EnableLLTDIO' -ErrorAction SilentlyContinue) | Select-Object -ExpandProperty 'EnableLLTDIO') -eq 0)
}
# registry_object (registry_test)
function test_6 {
return (-not ($null -ne (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'EnableLLTDIO')))
}
# registry_object (registry_test)
function test_7 {
return (((Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'ProhibitLLTDIOOnPrivateNet' -ErrorAction SilentlyContinue) | Select-Object -ExpandProperty 'ProhibitLLTDIOOnPrivateNet') -eq 0)
}
# registry_object (registry_test)
function test_8 {
return (-not ($null -ne (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'ProhibitLLTDIOOnPrivateNet')))
}
# registry_object (registry_test)
function test_9 {
return ($null -ne (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'AllowLLTDIOOndomain'))
}
# registry_object (registry_test)
function test_10 {
return ($null -ne (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'AllowLLTDIOOnPublicNet'))
}
# registry_object (registry_test)
function test_11 {
return ($null -ne (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'EnableLLTDIO'))
}
# registry_object (registry_test)
function test_12 {
return ($null -ne (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'ProhibitLLTDIOOnPrivateNet'))
}
# registry_object (registry_test)
function test_13 {
return ((@{String='reg_sz';ExpandString='reg_expand_sz';Binary='reg_binary';DWord='reg_dword';MultiString='reg_multi_sz';QWord='reg_qword';None='reg_none'}[(Get-Item -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD').GetValueKind('AllowLLTDIOOndomain').ToString()]) -eq 'reg_dword')
}
# registry_object (registry_test)
function test_14 {
return (-not ($null -ne (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'AllowLLTDIOOndomain')))
}
# registry_object (registry_test)
function test_15 {
return ((@{String='reg_sz';ExpandString='reg_expand_sz';Binary='reg_binary';DWord='reg_dword';MultiString='reg_multi_sz';QWord='reg_qword';None='reg_none'}[(Get-Item -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD').GetValueKind('AllowLLTDIOOnPublicNet').ToString()]) -eq 'reg_dword')
}
# registry_object (registry_test)
function test_16 {
return (-not ($null -ne (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'AllowLLTDIOOnPublicNet')))
}
# registry_object (registry_test)
function test_17 {
return ((@{String='reg_sz';ExpandString='reg_expand_sz';Binary='reg_binary';DWord='reg_dword';MultiString='reg_multi_sz';QWord='reg_qword';None='reg_none'}[(Get-Item -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD').GetValueKind('EnableLLTDIO').ToString()]) -eq 'reg_dword')
}
# registry_object (registry_test)
function test_18 {
return (-not ($null -ne (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'EnableLLTDIO')))
}
# registry_object (registry_test)
function test_19 {
return ((@{String='reg_sz';ExpandString='reg_expand_sz';Binary='reg_binary';DWord='reg_dword';MultiString='reg_multi_sz';QWord='reg_qword';None='reg_none'}[(Get-Item -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD').GetValueKind('ProhibitLLTDIOOnPrivateNet').ToString()]) -eq 'reg_dword')
}
# registry_object (registry_test)
function test_20 {
return (-not ($null -ne (Get-ItemProperty -Path 'Registry::HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\LLTD' -Name 'ProhibitLLTDIOOnPrivateNet')))
}
if (((test_1 -or test_2) -and (test_3 -or test_4) -and (test_5 -or test_6) -and (test_7 -or test_8) -and test_9 -and test_10 -and test_11 -and test_12 -and (test_13 -or test_14) -and (test_15 -or test_16) -and (test_17 -or test_18) -and (test_19 -or test_20))) {
Write-Output "PASS"
} else {
Write-Output "FAIL"
} Assessment Script Powered by AISyntax-verified
A standalone PowerShell script to assess this control automatically. Review before running it in your environment.
Syntax-checked as valid PowerShell. Not executed here — running it for real needs the actual windows_vista target this check assesses.
# OVAL Definition: oval:mil.disa.fso.windows:def:542
$compliant = $false
if ((Test-Path -Path "HKLM:\Software\Policies\Microsoft\Windows\LLTD\AllowLLTDIOOndomain") -or (Test-Path -Path "HKLM:\Software\Policies\Microsoft\Windows\LLTD\AllowLLTDIOOnPublicNet")) {
if ((Get-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\LLTD\AllowLLTDIOOndomain" -ErrorAction SilentlyContinue).value -eq 0 -or (Get-ItemProperty -Path "HKLM:\Software\Policies\Microsoft\Windows\LLTD\AllowLLTDIOOnPublicNet" -ErrorAction SilentlyContinue).value -eq 0) { $compliant = $true } }
if ($compliant) { Write-Output "PASS"; Exit 0 } else { Write-Output "FAIL"; Exit 1 }