Hi @Roger Roger ,
To add new registry entry you can use the New-ItemProperty cmdlet
$path1 = 'HKLM:\SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_ALLOW_USER32_EXCEPTION_HANDLER_HARDENING'
$path2 = 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_ALLOW_USER32_EXCEPTION_HANDLER_HARDENING'
New-item -Path $path1
New-ItemProperty -Path $path1 -Name 'iexplorer.exe' -Value 1 -PropertyType DWord
New-item -Path $path2
New-ItemProperty -Path $path2 -Name 'iexplorer.exe' -Value 1 -PropertyType DWord
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.