Kill TCP connection with Powershell

Sometimes you have an application that keeps connections open while they should be closed. Because Windows does not seem to have the capability to kill an connection without killing the whole process we’ll to use a 3rd party tool called cports.exe. Download here: https://www.nirsoft.net/utils/cports-x64.zip   $ProcessName= "BackgroundTransferHost" $State = "CloseWait " while ($true) { sleep -Seconds […]

Read More

Mscorsvw.exe and Ngen.exe high CPU usage

I could not stand that my laptop was blowing all day like a hairdryer and had to search for a fix. High CPU Taskmanager was showing that The .NET Framework optimization service and mscorsvw.exe areusing moderate CPU, but enough to let me fans blow fast. After some searching I came across https://blogs.msdn.microsoft.com/dotnet/2013/08/06/wondering-why-mscorsvw-exe-has-high-cpu-usage-you-can-speed-it-up/ and https://blogs.msdn.microsoft.com/davidnotario/2005/04/27/what-is-mscorsvw-exe-and-why-is-it-eating-up-my-cpu-what-is-this-new-clr-optimization-service/ Basically […]

Read More

Default printer problems and fix

We were experiencing some issues with customers and default printer changes. No matter what settings we use we still encountered change of default printer. Did some research and found that the NTUSER.DAT file seems corrupted, or something set wrong in the file. The NTUSER.DAT file is a registry file. Every user profile created on a […]

Read More