Tag Archives: command line

HOWTO install ‘winget’ from command line

Sometimes we might need to use the amazing ‘winget’ command where it isn’t available (for example from a Windows Sandbox, …). The few steps below will solve this problem. The installation process To install ‘winget’ command, you will need to download C++ Runtime framework packages for Desktop Bridge from MS, selecting the proper package (x86, x64, …) from the ‘How to install and update Desktop … Continue reading HOWTO install ‘winget’ from command line »

HOWTO redirect TCP connections on Windows

Recently I needed to redirect TCP connections and data streams to another PC. It is useful when you have PC1 and PC2 visible on the same LAN and can only see PC1 from outside.  In these cases, you have to use PC1 to reach PC2. Open a Command Prompt with administrative access rights and type the following: netsh interface portproxy add v4tov4 listenaddress=<local address/name> listenport=<localport> … Continue reading HOWTO redirect TCP connections on Windows »

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 »

HOWTO compress a folder by command line

NTFS file system has the ability to compress files and folders to save disk space.  The only drawback is that they will be read and written slower than the normal ones. Windows File Explorer displays them in blue instead of black, and it allows you to compress or expand by right-clicking them and selecting ‘Properties’ and then ‘Advanced’. Suppose that you have to compress a … Continue reading HOWTO compress a folder by command line »