Advertisement
czemu

com

Feb 22nd, 2023 (edited)
910
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. New-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\System" -Name "DisableShutdown" -Value 1 -PropertyType "DWord" -Force
  2.  
  3. Add-Content -Path "C:\Windows\System32\drivers\etc\hosts" -Value "0.0.0.0 portal.librus.pl"
  4. Start-Sleep -Seconds 1800
  5. (Get-Content -Path "C:\Windows\System32\drivers\etc\hosts") | Where-Object {$_ -notmatch "0.0.0.0 portal.librus.pl"} | Set-Content -Path "C:\Windows\System32\drivers\etc\hosts"
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement