summaryrefslogtreecommitdiff
path: root/docs/licensing-servers-issue.md
diff options
context:
space:
mode:
authorWindowsAddict2025-02-02 13:07:44 +0000
committerWindowsAddict2025-02-02 13:07:44 +0000
commit8c960a8ea75d27805d125ed4b067e625cf2071c3 (patch)
treea56251556c223022b5592a781ba7c70c53b4453c /docs/licensing-servers-issue.md
parenta06b6cf9db20a09c3aa8e97eebcab8a9dd473078 (diff)
downloadmassgrave.dev-8c960a8ea75d27805d125ed4b067e625cf2071c3.zip
Add commands to remove licensing servers from hosts
Diffstat (limited to 'docs/licensing-servers-issue.md')
-rw-r--r--docs/licensing-servers-issue.md10
1 files changed, 8 insertions, 2 deletions
diff --git a/docs/licensing-servers-issue.md b/docs/licensing-servers-issue.md
index f0156d9..ba3f38f 100644
--- a/docs/licensing-servers-issue.md
+++ b/docs/licensing-servers-issue.md
@@ -18,13 +18,19 @@ We suggest following the below guide only when the script tells you to do so.
- Open Powershell as admin and enter below commands,
```
+Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyEnable -Type DWord -Value 0
+Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyServer -Type String -Value ""
+
+$filePath = "$env:SystemRoot\System32\drivers\etc\hosts"
+Set-Content -Path $filePath -Value (Get-Content $filePath | ForEach-Object { $_ -replace '.*licensing.mp.microsoft.com.*', ''}) -force
+Set-Content -Path $filePath -Value (Get-Content $filePath | ForEach-Object { $_ -replace '.*purchase.mp.microsoft.com.*', ''}) -force
+Set-Content -Path $filePath -Value (Get-Content $filePath | ForEach-Object { $_ -replace '.*login.live.com.*', ''}) -force
+
netsh int ip reset
netsh winsock reset
netsh advfirewall reset
netsh winhttp reset proxy
bitsadmin /util /setieproxy localsystem NO_PROXY RESET
-Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyEnable -Type DWord -Value 0
-Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings" -Name ProxyServer -Type String -Value ""
ipconfig /flushdns
```