HOWTO restore inaccessible boot disks

A day before Christmas, a friend of mine called me telling me that one of his notebooks 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 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 quite annoying to wander through hundreds of firewall rules, then I discovered 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 the ones 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 … Continue reading HOWTO install a driver .INF by command line »

Few Considerations About Functions Returning an Object

I am rewriting a VCL program using MFC, and I have converted many functions of this kind: CString MyFunction () { return L”Sample test”; } This kind of function declaration is comfortable, but the question is: is it also convenient?   The answer I found is that it might not be so convenient, especially if used inside a loop. When we call this function, we … Continue reading Few Considerations About Functions Returning an Object »

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 my .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

updated 24/02/2025 Introduction During COVID-lockdown, one of the challenges is to understand how to smart work as best as possible. One of my problems is that I haven’t remote access to the SVN server. I began to wonder if and how GIT can alleviate my smart work problems. The found answer is: yes, it can. Both repository types have their strong and weak points. My … 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 a trick in 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 : … Continue reading HOWTO change network connection category quickly »