Код:
![Выделить весь код](images/misc/selectcode.png)
$file = 'C:\windows\System32\IntegratedServicesRegionPolicySet.json'
$json = gc $file |ConvertFrom-Json
$json.policies |? `$comment -eq 'Edge is uninstallable.' |% {
$_.defaultState = "enabled"
if ($_.conditions.region.enabled -notcontains "RU") {
$_.conditions.region.enabled += "RU"
}
}
$json |ConvertTo-Json -Depth 32 |Set-Content $file