ShellHacks
Command-Line Tips and Tricks

cmd

  • Blog

Open File Explorer from CMD & PowerShell

Posted on December 8, 2021December 8, 2021by admin

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 […]

Read More
No comments yet
  • Blog

Windows: `Echo` Newline (Line Break) [\n] – CMD & PowerShell

Posted on December 2, 2021by admin

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 […]

Read More
No comments yet
  • Blog

How To Find Laptop’s Model & Serial Number – CMD

Posted on November 18, 2021by admin

The laptop’s model and serial number usually can be found on the bottom case of the laptop as either a printed sticker or laser etched into the cover. Also the model and the serial number of a laptop can easily be found using a Windows command prompt (CMD). This “command prompt method” works for all […]

Read More
No comments yet
  • Blog

Check BIOS Version in Windows – CMD & PowerShell

Posted on November 13, 2021November 13, 2021by admin

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 […]

Read More
No comments yet
  • Blog

CMD: Clear Screen – Clear Command Prompt

Posted on September 23, 2021September 23, 2021by admin

The clear command in Linux is used to clear the terminal’s screen. You can also use the clear command in a Windows PowerShell where it is an alias of the Clear-Host command, that does pretty match the same – removes all text from the current display, including commands and output that might have accumulated. But […]

Read More
2 Comments
  • Blog

How To Find Windows Product Key – CMD & PowerShell

Posted on September 23, 2021December 12, 2021by admin

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.

Read More
No comments yet
  • Blog

Start Active Directory Users and Computers

Posted on September 23, 2021December 2, 2021by admin

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 […]

Read More
No comments yet
  • Blog

Batch File (.BAT) – Wait For Network Connection

Posted on September 22, 2021by admin

If you have a batch file that runs on a system startup and has to connect to some server, you may want to make it wait until the network becomes ready before actually making attempt to connect. In this note i will show a code snippet that can be used in a batch file to […]

Read More
No comments yet
  • Blog

How To Check Windows Version – CMD & PowerShell

Posted on September 11, 2021December 2, 2021by admin

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 […]

Read More
No comments yet
  • Blog

Change Local Account Password in Windows – CMD & PowerShell

Posted on July 25, 2021December 1, 2021by admin

If you have forgotten a local user password in Windows but you can still log in to the computer with PIN, picture password or another administrator account, you can easily reset the forgotten password from a command-line prompt (CMD) or using a PowerShell. In this note i will show how to change the forgotten local […]

Read More
No comments yet

Posts navigation

Older posts
Newer posts

Online Tools

  • Base64 Decode
  • Base64 Encode

Tags

access-control anonymity ansible apache archive arduino artifactory bash boot cmd command-line curl dns docker encryption git gitlab helm java jenkins kubernetes linux macos mail mongodb mysql network openssl pdf php powershell prometheus python raspberry pi ssh sublime text systemd telegram telnet text-processing tor tsm windows wordpress yum
  • Telegram
  • Twitter
  • RSS
Privacy
Copyright © 2011-2023 | www.ShellHacks.com