# Toggle the Script Debugging for IE
&{
$debugSetting = (Get-ItemProperty -path "HKCU:\software\Microsoft\Internet Explorer\Main\").DisableScriptDebuggerIE
if ($debugSetting -eq "yes")
{
$newValue = "no"
} else {
$newValue = "yes"
}
Set-ItemProperty -path "HKCU:\software\Microsoft\Internet Explorer\Main" -name "DisableScriptDebuggerIE" -value $newValue
}