Windows: Migrate Domain User Profile To Local

If you are leaving a company and keep your corporate laptop, that is in a company’s AD domain (e.g. AzureAD), with you, you may wonder how to keep your user’s profile settings and data before removing it from the domain.

Unfortunately, by the moment, Microsoft doesn’t propose any official tool to migrate the domain user profile to the local one (at least i couldn’t find one).

Nevertheless, there is a tool called “User Profile Wizard”, created by ForensiT’s, that can be used to copy the domain user profile to the local one and in this article I will show you how to do this. (more…)

Git Bash: Clear History

The history -cw command is used to clear a Bash history on Linux, but for some reason it doesn’t work for a Git Bash on Windows.

If you try to clear the commands history in the Git Bash using this command, it won’t work – you will still see the history of the executed commands after the application restart.

To completely erase the Git Bash history you need to locate and delete the .bash_history file and then run the history -c command. (more…)

Windows: `lsusb` Equivalent – PowerShell

The lsusb command in Linux, known as the “List USB” command, is widely used to list the connected USB devices and display the information about them.

One of the quickest ways to list the connected USB devices in Windows is by using the “Device Manger”: simply press the ⊞ Win key to open the “Start Menu” and type “device manager” to search for the app.

You can also open the “Device Manager” through the “Run” dialog, by pressing the ⊞ Win + R and executing the devmgmt.msc command.

Although there is no direct equivalent to the lsusb command in Windows, you can use the PowerShell’s Get-PnpDevice command to list the connected USB devices and display the information about them. (more…)

Windows: Startup Folder – Add Program to Startup

A program in Windows can be configured to automatically start on boot by placing its shortcut in a Windows startup folder.

There are two types of the startup folders in Windows – a user startup folder used to autostart applications for the particular user only and a system startup folder to configure the startup of the programs for the all users.

This note shows how to easily locate the startup folders in Windows and how add the programs to autostart by placing their shortcuts in the startup folders. (more…)

QR Code Generator – Windows, Linux, MacOS

A QR code generator is an application which creates and stores different types of data in a QR code image file.

A qrencode is a free command line tool for encoding string data in the QR code and saving it as a PNG or an EPS image.

In this note i will show how to install and and how to use (with examples) the qrencode on Windows, Linux and MacOS from the command line. (more…)

Windows: Restart Explorer

Windows Explorer or explorer.exe is a process in Windows that is responsible for starting and displaying the most of the graphical user interfaces (GUI), including the Desktop, Taskbar, “Start” menu and File Explorer.

If any of the components the Windows Explorer is responsible of are freezing, hanging and not responding, before restarting the whole computer you can try to restart the explorer.exe process only.

In this note i will show how to fix problems with the Windows Explorer by restarting the explorer.exe from the Windows Task Manager or from the command prompt (CMD). (more…)

CMD: Delete Folder (Force `RMDIR`) – Windows

The rm -rf command in Linux is used to force the deletion of folders and their contents recursively.

The rmdir command is a Windows rm equivalent in a Windows command prompt (CMD), that also can be used to force the folders deletion with all their contents.

In this note i will show how to force the rmdir command to delete folders and their contents recursively without throwing any errors like “The directory is not empty” or “Access is denied“. (more…)

Install Minikube on Windows

Minikube is a single-node Kubernetes cluster that can be installed on macOS, Linux and Windows.

It lets you to try out Kubernetes locally on your personal computer or use it for daily development work.

In this note i will show how to install Minikube & Kubectl on Windows and deploy a first “Hello Minikube” application on a local Kubernetes cluster. (more…)