27. April 2021

Quick way to clear all Windows Defender exclusions

Windows Defender has support for a list of exclusions that won’t be considered for scanning. The UI for manipulating with exclusions is quite simple and does not allow operations on multiple exclusions at once. Fortunately, there are PowerShell commands which can help.

These commands are Add-MpPreference, Get-MpPreference, and Remove-MpPreference.

Following commands allows to quickly remove all exclusions of Path. The command must be started in Administrator’s shell:

$Paths=(Get-MpPreference).ExclusionPath
foreach ($Path in $Paths) { Remove-MpPreference -ExclusionPath $Path }

A similar principle can be applied on the rest of the exclusions: ExclusionExtension, ExclusionIpAddress, ExclusionProcess

$Extensions=(Get-MpPreference).ExclusionExtension
foreach ($Extension in $Extensions) { Remove-MpPreference -ExclusionExtension $Extension }

$Processes=(Get-MpPreference).ExclusionProcess
foreach ($Process in $Processes) { Remove-MpPreference -ExclusionProcess $Process }

6. July 2019

Web request command line generator

Tool for generating commands for web requests in different technologies.

9. May 2019

How to switch tabs in ConEmu-Maximus5

ConEmu-Maximus5 contain simple keyboard shortcut to switch between active tabs on Windows:

CTRL + Tab – switch to the next tab
CTRL + Shift + Tab – switch to the previous tab

11. September 2017

How to increase font size in Wireshark 2.4 on Windows

Wireshark is based on the new version of QT, and it has a similar problem on Windows like pgAdmin 4.

If you have a screen with higher density, the font will be too small.

The solution is to add one parameter for QT engine to handle DPI differently.

Open PowerShell as Administrator and go to the directory with Wireshark open qt.conf file:

cd "C:\Program Files\Wireshark"
notepad qt.conf

Write there following content:

[Platforms]
WindowsArguments = dpiawareness=0

Save the file and start Wireshark.

Note: make sure that the file name is just qt.conf. Notepad could add .txt file extension when saving the file directly from Notepad.

Enjoy bigger font:

18. May 2017

How to use PowerShell in IntelliJ Idea terminal instead of cmd

IntelliJ Idea has support for embedded terminal. That’s handy because you do not need to open extra window just for a terminal.

The default configuration of IntelliJ on Windows is installed with old-school cmd.exe. It’s quite easy to replace it by PowerShell.

Go to Settings (Ctrl+Alt+S). Search for word “terminal“. Select Tools – Terminal.

Change Shell path option from cmd.exe to

C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe

Press OK and start new Terminal window.

I recommend to use Dracula theme which is a little bit more readable than the white theme.