mirror of
https://github.com/ChrisTitusTech/winutil
synced 2026-04-06 06:38:31 +00:00
Fix WPFTweaksBlockAdobeNet (#4042)
* Fix WPFTweaksBlockAdobeNet * Update tweaks.json
This commit is contained in:
@@ -1987,9 +1987,9 @@
|
|||||||
"InvokeScript": [
|
"InvokeScript": [
|
||||||
"
|
"
|
||||||
$hostsUrl = \"https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts\"
|
$hostsUrl = \"https://github.com/Ruddernation-Designs/Adobe-URL-Block-List/raw/refs/heads/master/hosts\"
|
||||||
$hosts = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\"
|
$hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\"
|
||||||
|
|
||||||
Copy-Item $hosts \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\\$hosts.bak\"
|
Move-Item $hosts \"$hosts.bak\"
|
||||||
Invoke-WebRequest $hostsUrl -OutFile $hosts
|
Invoke-WebRequest $hostsUrl -OutFile $hosts
|
||||||
ipconfig /flushdns
|
ipconfig /flushdns
|
||||||
|
|
||||||
@@ -1998,10 +1998,10 @@
|
|||||||
],
|
],
|
||||||
"UndoScript": [
|
"UndoScript": [
|
||||||
"
|
"
|
||||||
$hosts = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\"
|
$hosts = \"$Env:SystemRoot\\System32\\drivers\\etc\\hosts\"
|
||||||
$backup = \"$env:SystemRoot\\System32\\drivers\\etc\\hosts\\$hosts.bak\"
|
|
||||||
|
|
||||||
Remove-Item $hosts
|
Remove-Item $hosts
|
||||||
|
Move-Item \"$hosts.bak\" $hosts
|
||||||
ipconfig /flushdns
|
ipconfig /flushdns
|
||||||
|
|
||||||
Write-Host \"Removed Adobe url block list from host file\"
|
Write-Host \"Removed Adobe url block list from host file\"
|
||||||
|
|||||||
Reference in New Issue
Block a user