The error requested registry access is not allowed is returned on trying to use *.OpenSubKey on scattered keys (not all); this may be what is causing the behavior, RE: script no longer remediates the unquoted search paths issue in \Services\
ex.,
1/4/2023 11:11 Unable to open System\CurrentControlSet\Services\EventLog\Application\Software Installation
1/4/2023 11:11 Unable to open System\CurrentControlSet\Services\EventLog\Application\SPP
1/4/2023 11:11 Unable to open System\CurrentControlSet\Services\EventLog\Application\SrmSvc
1/4/2023 11:11 Unable to open System\CurrentControlSet\Services\EventLog\Application\System Restore
1/4/2023 11:11 Unable to open System\CurrentControlSet\Services\EventLog\Application\Universal Print
1/4/2023 11:11 Unable to open System\CurrentControlSet\Services\EventLog\Application\VSS
1/4/2023 11:11 Unable to open System\CurrentControlSet\Services\EventLog\Application\WerSvc
1/4/2023 11:11 Unable to open System\CurrentControlSet\Services\EventLog\Application\Windows Backup
1/4/2023 11:11 Unable to open System\CurrentControlSet\Services\EventLog\Application\Windows Search Service
1/4/2023 11:11 Unable to open System\CurrentControlSet\Services\EventLog\Application\Windows Search Service Profile Notification
1/4/2023 11:11 Unable to open System\CurrentControlSet\Services\EventLog\System\AppReadiness
1/4/2023 11:11 Unable to open System\CurrentControlSet\Services\EventLog\System\Kerberos
Expected behavior: see alternative remediation scripts, ex., VectorBCO Windows Path Enumeration
The error
requested registry access is not allowed
is returned on trying to use*.OpenSubKey
on scattered keys (not all); this may be what is causing the behavior, RE: script no longer remediates the unquoted search paths issue in\Services\
ex.,
Expected behavior: see alternative remediation scripts, ex., VectorBCO Windows Path Enumeration