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

NIC Teaming modes and Distribution algorithms in Windows Server 2012 R2

I find it quite hard to remember the distribution algorithms and the advantages of each teaming mode with switch configuration, so I’ve made a summary with pointers to grab when needed again. Use it to your advantage 🙂 ————————————– Outbound traffic can be distributed among the available links in many ways. One rule that guides […]

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