![]() Powercfg – Controls Configurable Power Settings The extension of the command you can use to run a scan is /scannow. ![]() This command scans your computer for corrupt files and repairs them. This command also has extensions such as ipconfig /release, ipconfig /renew, and ipconfig /flushdns which you can use to troubleshoot issues with internet connections. Ipconfig – Shows Information about PC IP Addresses and Connections Ping – Shows a Website IP Address, Lets you Know How Long it Takes to Transmit Data and a Get ResponseĬolor – Changes the Text Color of the Command PromptĮnter color attr to see the colors you can change to:Įntering color 2 changes the color of the terminal to green:įor /f "skip=9 tokens=1,2 delims=:" %i in ('netsh wlan show profiles') do %j | findstr -i -v echo | netsh wlan show profiles %j key=clear – Shows All Wi-Fi Passwords Netstat -an – Shows Open Ports, their IP Addresses and States You can use the cipher command to wipe the drive clean and encrypt such files. So, technically, they are not deleted under the hood. On a PC, deleted files remain accessible to you and other users. For example fc “file-1-path” “file-2-path”.Ĭipher – Wipes Free Space and Encrypts Data If you are a programmer or writer and you want to quickly see what differs between two files, you can enter this command and then the full path to the two files. Title – Changes the Command Prompt Window Title Using the Format title window-title-name ![]() assoc – Lists Programs and the Extensions They are Associated With You can type clip /? and hit ENTER to see how to use it. clip – Copies an Item to the Clipboardįor example, dir | clip copies all the content of the present working directory to the clipboard. N.B: If you don’t append $G to the command, you won’t get the greater than symbol in front of the text. You can use the prompt command to change that default text with the syntax prompt prompt_name $G: Prompt – Changes the Default Text Shown before Entering Commandsīy default, the command prompt shows the C drive path to your user account. Set – Shows your PC’s Environment Variables If you want to see more detailed information about your system you won’t see in the GUI, this is the command for you. That’s what this command does – it shows you even the drivers you won’t find in the device manager.Ĭhdir or cd – Changes the Current Working Directory to the Specified Directory It is important to have access to all drivers because they often cause problems. Windows Command Line Commands powershell start cmd -v runAs – Run the Command Prompt as an AdministratorĮntering this command opens another command prompt window as an administrator:ĭriverquery – Lists All Installed Drivers In addition, some of these commands require you to open the command prompt as an admin. This is because some commands can have a lasting negative or positive effect on your Windows PC until you reset it. N.B.: You have to be careful while using the commands I’ll show you. In this article, I’ll show you 40 commands you can use on the Windows command line that can boost your confidence as a Windows user. ![]() With it, you can interact with the OS directly and do a lot of things not available in the graphical user interface (GUI). If ((New-Object (::GetCurrent())).The Windows command line is one of the most powerful utilities on a Windows PC. # note that account info is only retrieved if we are elevated $Processes = first check if we're running elevated or not, so we don't error out on the Get-Process command Note that you'll only get the account info if you run it with admin rights: The final script for both TCP and UDP is below. OK, it did get a bit complicated once I got into it. And wait, the fields don't *exactly* match up, and the Get-NetUDPEndpoint doesn't actually spell out what's listening, we need to stuff that into the field. except that to do a Get-Process with the associated account info (the -IncludeUserName option), you need elevated rights. Join them up into one list, and dump the output right? It'll be easy I thought, just slam together the output of: Which got me to thinking about doing this in Powershell. ![]() Likely they made that decision out of spite - you know, just so I can't grep the information that I actually need out of it. This all started with me troubleshooting on a customer's server, and cursing Microsoft's decision to spread the output of "netstat -naob" across two lines. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |