Interesting command line tricks on Windows.

There are quite a few interesting command-line tricks for Windows. Create a folder named CON. This is quite difficult to delete. echo "hello" > \\.\C:\Users\shawn\Documents\CONecho "hello" > \\.\C:\Users\shawn\Documents\CON Another interesting trick is one. C:\Users\Dyatlov\Downloads\testing>echo "" > ….::$INDEX_ALLOCATION The system cannot find the file specified.C:\Users\Dyatlov\Downloads\testing>echo "" > ….::$INDEX_ALLOCATION The system cannot find the file specified. This … Read more

How to remove windows features with the dism command.

These commands used in a Administrator cmd prompt will cleanup any Windows update files and any other unwanted temporary files on your Windows system. dism /online /cleanup-image /spsuperseded cleanmgr /d C:dism /online /cleanup-image /spsuperseded cleanmgr /d C: In my case, there were no Windows Updates to cleanup. dism /online /get-featuresdism /online /get-features The command above … Read more

How to get system information in Windows with CMD.

The systeminfo command for Windows allows a user to get comprehensive system information. The default usage outputs the most system information in one go. C:\Users\Corporal Kerry>systeminfo | clipC:\Users\Corporal Kerry>systeminfo | clip This command will output the system information in CSV format. C:\Users\Corporal Kerry>systeminfo /FO CSVC:\Users\Corporal Kerry>systeminfo /FO CSV Use the /S parameter to specify a … Read more

How to pipe the output of a Windows command to the clipboard.

Pipe text to the clipboard from Windows CMD Apparently, there is an obscure feature in the Windows CMD prompt that allows users to pipe the output of a Windows CMD command on STDOUT to the Windows clipboard. The clip command allows this. For example. C:\Users\johnc>ipconfig | clipC:\Users\johnc>ipconfig | clip This will pipe the IP addressing … Read more

How to search for files on a Windows machine with the command line. And some other useful tricks.

This command will search a directory recursively to find files matching a pattern. C:\Users\Homer>where /R C:\Users\homer\Documents *.txt C:\Users\Homer\Documents\age-of-ultron-script-outline.txt C:\Users\Homer\Documents\windows10key.txt C:\Users\Homer\Documents\Downloads\Linux The Complete Manual 2nd Edition (TRUE PDF)\Torrent downloaded from AhaShare.com.txt C:\Users\Homer\Documents\Downloads\Linux The Complete Manual 2nd Edition (TRUE PDF)\Torrent Downloaded From ExtraTorrent.cc.txt C:\Users\Homer\Documents\Downloads\Linux The Complete Manual 2nd Edition (TRUE PDF)\tracked_by_h33t_com.txt C:\Users\Homer\Documents\Downloads\Linux The Complete Manual 2nd Edition … Read more

Add BASH styled line editing and persistent history to the CMD window.

This useful utility: http://mridgers.github.io/clink/. Will allow persistent history and line editing in the Windows 10 CMD window. This makes the CMD session much more enjoyable to use. Press Alt-H in the CMD window to get help that shows the keyboard shortcuts for this addon. Microsoft Windows [Version 10.0.10130] (c) 2015 Microsoft Corporation. All rights reserved. … Read more

Calculate subnets with the Linux command line and sipcalc.

The sipcalc utility for Linux is used to calculate subnets for IP addresses. The below example shows a /26 address and the available IP addresses and number of network nodes in the subnet. This is a good way to calculate the network mask if the network administrator requires this information to input it into a … Read more

How to use the runas command in Windows to elevate privileges.

The runas command in Windows allows a user to elevate their level of privileges to run a command as the Administrator user. The example below shows the usage of the runas command to open another cmd window as the Administrator user. C:\Users\mike\Documents\openvpn>runas /user:Scott\Dobbo cmd Enter the password for Scott\Dobbo: Attempting to start cmd as user … Read more

More useful Windows Server 2012 CMD commands.

The route PRINT command shows the routing table. This gives some insight into your network connections. C:\Users\Administrator>route PRINT =========================================================================== Interface List 18…1e 0f 6e 5d e1 25 ……Microsoft Wi-Fi Direct Virtual Adapter 13…4c 0f 6e 5d e1 25 ……Qualcomm Atheros AR5B97 Wireless Network Adapter 12…88 ae 1d 6d 09 bc ……Broadcom NetLink (TM) Gigabit Ethernet … Read more

Some useful Windows commands to use in the cmd window. Get information about your user.

This command lists the information about your user. C:\Users\homer>net user Administrator User name Administrator Full Name Comment Built-in account for administering the computer/domain User’s comment Country code 000 (System Default) Account active No Account expires Never   Password last set 11/2/2006 11:08:15 PM Password expires Never Password changeable 11/2/2006 11:08:15 PM Password required Yes User … Read more