вторник, 25 августа 2026 г.

How to force Windows reboot from remote CLI

Sometimes you meet a situation when remote Windows is completely frozen, so you can't even start RDP session. But if you can open console session via SSH, it's possible to reboot the computer remotely.

Try use the following commands:

  • powershell -Command "Get-WmiObject Win32_Process -Filter \"name='winlogon.exe'\" | ForEach-Object { $_.Terminate() }"
  • powershell -Command "Get-CimInstance Win32_Process -Filter \"name='winlogon.exe'\" | Invoke-CimMethod -MethodName Terminate"
  • powershell -Command "(Get-WmiObject Win32_Process -Filter \"name='wininit.exe'\").Terminate()"
     

вторник, 7 июля 2026 г.

Clean up Windows Non-essential Files

 

How to clean up the WinSxS folder safely:
  1. Use Disk Cleanup:
    • Press the Windows Key and type Disk Cleanup.
    • Select your C: drive and click OK.
    • Click on the Clean up system files button.
    • Check the boxes for Windows Update Cleanup and other files you want to remove, then click OK. [1, 2, 3]
  2. Use the DISM Tool (More Advanced):
    • Press the Windows Key, type cmd.
    • Right-click Command Prompt and select Run as administrator.
    • Type the following command and press Enter:
      dism.exe /online /Cleanup-Image /StartComponentCleanup
      [1, 2, 3]
This removes old, unnecessary versions of files and safely reduces the folder's size.

понедельник, 8 декабря 2025 г.

Disable https redirect in Firefox

To disable http → https redirects, go to about:config page and set to false the following parameters:

browser.fixup.fallback-to-https = false

network.stricttransportsecurity.preloadlist = false

dom.security.https_first = false

Also check Settings → Privacy & Security → HTTPS-Only Mode is disabled.

See: https://www.reddit.com/r/firefox/comments/1g8lekv/disable_https_redirect/ 

вторник, 16 июля 2024 г.