While browsing files and folders in a default Windows graphical file manager application called File Explorer, sometimes you may want to open a folder in a command prompt (CMD) or PowerShell to execute some commands within the current folder. You can easily open the command prompt or PowerShell directly in the current folder without wasting […]
Open File Explorer from CMD & PowerShell
File Explorer, is a default file manager application in Windows that provides a graphical user interface for accessing the file systems. While working in a Windows command prompt (CMD) or PowerShell, sometimes you may want to open the current folder in the File Explorer to continue working from there. This note shows how to open […]
Windows: `Echo` Newline (Line Break) [\n] – CMD & PowerShell
In a Windows Command Prompt (CMD) and PowerShell when you execute the echo command to print some text or redirect it to a file, you can break it into multiple lines. In Linux you can do this by using the \n. This short note shows how to break lines and insert new lines using the […]
Check BIOS Version in Windows – CMD & PowerShell
BIOS is a firmware interface between a computer’s hardware and the operating system and like any software, it can be updated. Knowing the BIOS version can tell you if you have the most up-to-date version of the BIOS or it has to be updated. This note shows how to check the BIOS version in Windows […]
How To Find Windows Product Key – CMD & PowerShell
A Windows product key is a 25-character code that looks like XXXXX-XXXXX-XXXXX-XXXXX-XXXXX and is used to activate Windows. This short note shows how to find the Windows product key from a command prompt (CMD) or from a Windows PowerShell and check its validity.
Start Active Directory Users and Computers
The Active Directory Users and Computers is a management console used to administer Active Directory (manage users, groups, computers, polices, etc.). By default, it is deployed on a Windows Server host, when it’s promoted to the domain controller during the Active Directory Domain Services role installation. In this short note i am showing how to […]
PowerShell: String To → lowercase | UPPERCASE
If you need to convert some text to lower or UPPER case, this can be easily done from the command-line using the Windows PowerShell. In this short note i will show the examples of how to convert a string in PowerShell to lowercase or UPPERCASE using the ToLower() or ToUpper() methods respectively.
How To Check Windows Version – CMD & PowerShell
Do you wonder how to find out what version of Windows is running? The Windows version can be checked in multiple ways. In this short note i am showing the easiest way to get information about the Windows version using the winver command from the “Run” dialog or using the systeminfo command from a command-line […]
Check If User Is In Domain – CMD & PowerShell
In Windows, a Local User is the user created in the local system, whose username and password are stored on the computer itself. A Domain User is one whose username and password are stored on a domain controller (e.g. Active Directory) rather than the computer the user is logging into. In this note i will […]
PowerShell: Capture Keystroke – Detect Pressed Key
Let’s say you have connected to your computer some human interface device (HID) that can simulate key presses (e.g. Arduino with a button) and you want to do some debug. If you wonder how to capture a keystroke in Windows and detect which key has been pressed, this can be easily done from the PowerShell.