Forum Discussion
StuartK73
Oct 01, 2025Iron Contributor
Remed Script to delete Reg Value
Hi All I hope you are well. Anyway, pulling hair out this one, so could someone help me compile a Detect and Remed script to delete the following Reg key please: Computer\HKEY_LOCAL_MACHI...
matt91070
Oct 01, 2025Brass Contributor
$regPath = "HKLM:\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate"
$valueName = "SetActiveHours"
Remove-ItemProperty -Path $regPath -Name $valueName -Force -ErrorAction Stop
If I understand correctly, if you want to remove this value, I will say something simple like this in PowerShell
Hoping this might be helpful