Windows Tip & Trics - pavangayakwad/scripts GitHub Wiki

Tweak Windows (The best open source tool)

https://github.com/ChrisTitusTech/winutil

Want to kill the windows defender on Windows 10 forever?

Rename following files to something else.

C:\Windows\System32\SecurityHealthHost.exe

C:\Windows\System32\SecurityHealthService.exe

C:\Windows\System32\SecurityHealthSystray.exe

C:\Windows\System32\smartscreen.exe

For disabling Windows notification about inactivity of Defender

C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2007.8-0\MsMpEng.exe

C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2007.8-0\MpCmdRun.exe

C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.2007.8-0\ConfigSecurityPolicy.exe

C:\Program Files\Windows Defender Advanced Threat Protection\MsSense.exe

C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.25010.11-0\MpDefenderCoreService.exe

Must KILL apps

C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.25110.6-0\MpDefenderCoreService.exe

C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.25110.6-0\MsMpEng.exe

C:\ProgramData\Microsoft\Windows Defender\Platform\4.18.25110.6-0\NisSrv.exe

Windows 11 23H2 and onwards

MpDefenderCoreService.exe NisSrv.exe

image

That's it!

Determine which port blocked by PID

netstat -ano | find "8080"

Kill the blocking process

taskkill /F /PID <PID>

Rest port blocking and get your work done

net stop winnat

docker start <container_name> or do your stuff

net start winnat

Classic Windows Explorer Context Menu on Windows 11

:: Set "Old" Explorer Context Menu as Default

reg add "HKEY_CURRENT_USER\SOFTWARE\CLASSES\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /ve /f

:: Remove Explorer "Command Bar"

reg add "HKCU\Software\Classes\CLSID\{d93ed569-3b3e-4bff-8355-3c44f6a52bb5}\InprocServer32" /f /ve

:: Restart Windows Explorer. (Applies the above settings without needing a reboot)

taskkill /f /im explorer.exe

start explorer.exe

Windows 11 on VMs

Bypass TPM and SecureBoot when installing Windows 11 on unsupported hardware:

  • During installation press Shift+F10,
  • open registry and create key LabConfig under HKEY_LOCAL_MACHINE\SYSTEM\Setup
  • There add:

"BypassTPMCheck"=dword:00000001

"BypassSecureBootCheck"=dword:00000001

Hyper-v Guest - Host networking

https://www.brentozar.com/archive/2017/06/hyper-v-getting-host-guest-connected/

Close VS Code side bar with esc

https://marketplace.visualstudio.com/items?itemName=DominicVonk.auto-toggle-sidebar

Remove unusable EFI boot entries

  • Open CMD as administrator
  • Type command to get the list of boot entries and their UUIDs bcdedit /enum firmware
  • Type this command with suitable UUID entry to delete the EFI entry from boot menu, {uuid} can be proper UUID of EFI boot option bcdedit /delete {fc7e5158-4aa4-11ec-84f1-b2e667da4c30}

When PopOS removes windows boot partition

The life-saver video work when, your windows boot EFI boot partition is in another drive and you need to restore it so that pop_os boot menu can pick it up.

https://www.youtube.com/watch?v=FBVxpPKGmkM

SQL Server 2022 on Windows Troubleshooting

Why 2022 act like a shit and how to tweak Registry to clean it up https://learn.microsoft.com/en-us/troubleshoot/sql/database-engine/database-file-operations/troubleshoot-os-4kb-disk-sector-size?WT.mc_id=DP-MVP-5440

To start the service using -T1800 flag https://www.red-gate.com/simple-talk/databases/sql-server/learn/how-to-enable-sql-server-trace-flags/

Nushel is must

https://www.nushell.sh/

VSCode stop Chat window loading

put this in settings section JSON "workbench.secondarySideBar.defaultVisibility": "hidden"

⚠️ **GitHub.com Fallback** ⚠️