Category Archives: tech pit

everything related to technical stuff

HOWTO restore inaccessible boot disks

A day before Christmas, a friend of mine called me telling me that one of his notebook didn’t start anymore. A glorious BlueScreen pops up giving an error 0xC000000E because a device isn’t accessible anymore. We downloaded the latest Windows 10 Media Creation Tool to create a bootable USB Windows 10 image from where to try to fix the problem.  Naturally, the automatic recovery didn’t … Continue reading HOWTO restore inaccessible boot disks »

HOWTO integrate NASM with VS2019

Occasionally I use assembler to squeeze processing power from my programs. A cheap solution was C inline assembler sections, but VS2019 doesn’t support them into a 64-bits program.  Other compilers use other more or less complex solutions (IBM assembler, …). This forced me to consider to have & link .asm files in my projects.  I can split them with 32 and 64 bits code and … Continue reading HOWTO integrate NASM with VS2019 »

HOWTO fix Performance Monitor ‘unable to add counter’ errors

Several days ago, I started Performance Monitor, and I tripped the following error: Unable to add these counters: \Memory\Available MBytes \Memory\% Committed Bytes In Use \Memory\Cache Faults/sec \Memory\Cache Faults/sec \PhysicalDisk(*)\%Idle Time \PhysicalDisk(*)\Avg. Disk Queue Length \Network Interface(*)\Bytes Total/sec Looking around, I found and followed this article. The Solution I fixed the problem by executing the following command from an administrative Command Prompt window: lodctr /r … Continue reading HOWTO fix Performance Monitor ‘unable to add counter’ errors »

HOWTO enable/disable PING on Windows 10 firewall by command prompt

In windows 10, the firewall blocks PING command messages by default. I presume that this setting is to improve the security of our PCs, but sometimes we need it because we have to investigate about network problems, … Since I find that wandering into hundreds of firewall rules quite annoying, then I found the command lines to enable/disable the related firewall rules from an Administrative … Continue reading HOWTO enable/disable PING on Windows 10 firewall by command prompt »

HOWTO install a driver .INF by command line

Up to now, there are different ways to install a device driver: by a dedicated setup file by the manufacturer. by using Device Manager to update it of a previously installed device. by File Explorer right-click menu. … by script or command line This last option can be useful if you need to include in a script the driver installation, or in a troubleshooting phase … Continue reading HOWTO install a driver .INF by command line »

HOWTO compact vhd/vhdx Hyper-V files

It happened that the usual compact disk from Hyper-V Console doesn’t seem to be effective on one of mine .vhdx file. Looking around on the web, I discovered that it is a quite common problem. The solution is to open a Powershell window with administrative access rights, and use the following command: optimize-vhd <offline Hyper-V disk file> -mode full For further details about this command, … Continue reading HOWTO compact vhd/vhdx Hyper-V files »

HOWTO use GIT with SVN server

Introduction During COVID-Lockdown, one of the challenges is to understand how to smartwork as best as possible. One of my problems is that I haven’t a remote access to SVN server. I began to wonder if and how GIT can alleviate my smartwork problems. The found answer is: yes, it can. Both repository types have their strong and weak points. My personal impression is that … Continue reading HOWTO use GIT with SVN server »

HOWTO change network connection category quickly

During the COVID-19 global event, I needed to set up VPNs, remote connections… I also discovered that changing the network connection category can be quite trick into Windows 10 GUI. I discovered that is a simple task by using Powershell Solution Open a Powershell window with administrative rights run the following command: Get-NetConnectionProfile it will show one or more of the following: Name : my_wifi … Continue reading HOWTO change network connection category quickly »