Automatically initialize variables in Azure Functions

  When working with Azure Functions and passing parameters in the HTTP request, this piece of Powershell comes in handy every time. $Request.Query.GetEnumerator() | ForEach-Object { New-Variable -Name $_.Key -Value $_.Value } This will make a variable from each parameter you pass in the request.So for example; If you request the following Azure functions URL:https://darryl.azurewebsites.net/api/Get-Info?code=WrUum7c6ZM3YyyjY4O6Im8YtL7asx0ShxXJ5pUCDaL4832lsQYZkng==&myname=darryl […]

Read More

My take on Azure Stack HCI

I never really do opinion posts, but when I started writing this.. text just kept coming.. enjoy 🙂 So the word is officially out. Windows Server Software-Defined (WSSD) is going to be rebranded to Azure Stack HCI for Windows Server 2019. When I first heard about it I was, probably just like you, surprised and […]

Read More

Align VMs with Storage

With Storage Spaces Direct, every Metadata / write IO is redirected to the node who owns the Cluster Shared Volume. If you’re using NTFS the volume will be in “Block Redirected Mode”, if ReFS is used the volume will be in “File System Redirected Mode”.  You can see this with Powershell; Get-ClusterSharedVolumeState. More info on […]

Read More

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