Tag: windows

  • bashscript – Restart explorer without losing open windows

    When we have to restart explorer.exe, usually we have many folders opened, which get closed in the process. There is a way to re-open these folders automatically after restarting explorer using bat script: @echo off setlocal enabledelayedexpansion powershell @^(^(New-Object -com shell.application^).Windows^(^)^).Document.Folder.Self.Path >> openedpaths.txt taskkill /im explorer.exe /f start explorer.exe FOR /F "tokens=*" %%f IN (%~dp0openedpaths.txt)…

  • Remote Desktop on Windows 11 with Microsoft Account MFA

    This is the guide to use Remote Desktop on Windows 11 Pro with Microsoft Account logged in and enabled MFA. On Windows 11 Pro (also Windows 10 Pro), If the user has signed in to Microsoft Account and enabled MFA, so the Local Account password is swept out once switching to Microsoft Account and we…