CLI Command Line Grep Linux Win 7 Win7 Windows Windows 2000 Windows 2003 Windows 7 Windows Vista Windows7

Windows (XP, Vista, Windows 7, 2003, 2008) Commands

Here is a great list Windows XP/2000 commands that will make any Linux user feel at home at the command prompt. A lot of these commands are intended for administrating a network, but they are great for savvy home users as well.

  • at – Windows Scheduling utility
  • bootcfg – This utility allows you to set up your boot options, such as your default OS and other loading options
  • cacls – Changes the ACLs (security Settings) of files and folders. Very similar to chmod in Linux.
  • comp – This utility is very similar to diff in Linux. Use the /? switch to get examples of command usage.
  • defrag – Yes, XP comes with a command line disk defrag utility. Here’s an example of how to create a scheduled task to defrag every day:

    schtasks /create /tn “Defrag C” /tr “defrag c: /f” /sc daily /st 04:30:00 /ru “System”

  • diskpart – Use this command to manage your disk partitions. This is the text version for the GUI Disk Manager.
  • driverquery – Produces a list of drivers, their properties, and their versions. Great for computer documentation.
  • eudcedit (unpublished) – Private Character editor. Yes with this program built into Windows XP you can create your own font!
  • findstr – Find String – similar to Linux’s Grep.
  • fsutil (unpublished) – This is a utility with a lot of capability. Come back soon for great examples.
  • getmac – This command gets the Media Access Control (MAC) address of your network cards.
  • gpresult – This generates a summary of the user settings and computer group policy settings.
  • gpupdate – Use this utility to manually apply computer and user policy from your windows 2000 (or newer) Active Directory domain.
  • ipconfig – This handy tool displays IP settings of the current computer and much more.
  • MMC – Microsoft Management Console. This is the master tool for Windows, it is the main interface in which all other tools use starting primarily in Windows 2000 and newer systems.
  • more- Utility used to display text output one screen at a time. Example:

    more c:windowswin.ini

  • msconfig – The ultimate tool to change the services and utilities that start when your Windows machine boots up. You can also copy the executable from XP and use it in Win2k.
  • msinfo32 – An awesome diagnostic tool. With it you can get a list of running processes, including the residing path of the executable (great for manually removing malware) and get detailed information about hardware and system diagnostics.
  • narrator – Turns on the system narrator (can also be found in accessibility options in control panel). Will will allow your computer to dictate text to you.
  • netsh – A network configuration tool console. At the ‘netsh>’ prompt, use the ‘?’ to list the available commands and type “exit” to get back to a command prompt.
  • netstat – A local network port tool – try netstat -ano.
  • nslookup – A DNS name resolution tool.
  • openfiles – Allows an administrator to display or disconnect open files in XP professional. Type “openfiles /?” for a list of possible parameters.
  • Pathping – A cross between the ping and traceroute utilities. Who needs Neotrace when you can use this? Type “pathping ” and watch it go.
  • recover – This command can recover readable information from a damaged disk and is very easy to use.
  • reg – A console registry tool, great for scripting Registry edits.
  • sc – A command line utility called the Service Controller. A power tool to make service changes via a logon/logoff or startup/shutdown script.
  • schtasks – A newer version of the AT command. This allows an administrator to schedule and manage scheduled tasks on a local and remote machines.
  • secedit – Use this utility to manually apply computer and user policy from your windows 2000 (or newer) domain. Example to update the machine policy: secedit /refreshpolicy machine_policy /enforce
    To view help on this, just type secedit.
    NOTE: In Windows XP SP1 and news, this command is superceded by: gpupdate /force
  • sfc – The system file checker scans important system files and replaces the ones you (or your applications) hacked beyond repair with the real, official Microsoft versions.
  • shutdown – With this tool, You can shut down or restart your own computer, or an administrator can shut down or restart a remote computer.
  • sigverif – With the sigverif tool you can have all driver files analyzed to verify that they are digitally signed. Just type ‘sigverif’ at the command prompt.
  • systeminfo – Basic system configuration information, such as the system type, the processor type, time zone, virtual memory settings, system uptime, and much more. This program is great for creating an inventory of computers on your network.
  • sysedit – System Configuration File Editor. An old tool that was very handy for the Windows 9X days. msconfig is what you want to use now.
  • tasklist – Tasklist is the command console equivalent to the task manager in windows. It is a must have when fighting malware and viruses. Try the command:

    tasklist /svc to view the memory resources your services take up.

  • taskkill – Taskkill contains the rest of the task manager functionality. It allows you to kill those unneeded or locked up applications.
  • tree – This command will provide a ‘family tree’ style display of the drive/folder you specify.
  • WMIC – Windows Management Instrumentation Command tool. This allows you to pull an amazing amount of low-level system information from a command line scripting interface.

Of course this list in note exhaustive, I just wanted to focus on tools that are particularly helpful that everyone might use. For the official list, please visit Microsoft Windows XP Pro Command Reference.

Registry SourceForge Win 7 Win7 Windows Windows 2000 Windows 7 Windows Vista Windows7

RegShot – Windows Registry Compare Utility

Regshot is an open-source (GPL) Windows (2000, Windows XP, Windows Vista, Windows 7, Windows 2008) registry compare utility that allows you to quickly take a snapshot of your registry and then compare it with a second one – done after doing system changes or installing a new software product.


Blog Linux Remote Desktop Windows Windows Vista

Terminal Services slow from Vista client

Remote Desktop 6.0 leverages a new feature called auto-tuning for the TCP/IP receive window that could be causing the trouble. What is auto-tuning for the TCP/IP receive window? Well, the new Microsoft TCP/IP stack supports Receive Window Auto-Tuning. Receive Window Auto-Tuning continually determines the optimal receive window size by measuring the bandwidth-delay product and the application retrieve rate, and adjusts the maximum receive window size based on changing network conditions.

In Vista, Receive Window Auto-Tuning enables TCP window scaling by default, allowing up to a 16 MB window size. As the data flows over the connection, the TCP/IP stack monitors the connection, measures the current bandwidth-delay product for the connection and the application receive rate, and adjusts the receive window size to optimize throughput. The new TCP/IP stack no longer uses the TCPWindowSize registry values which many third-party utilities used to “tweak”.

Receive Window Auto-Tuning has a number of benefits. It automatically determines the optimal receive window size on a per-connection basis. In Windows XP, the TCPWindowSize registry value applies to all connections. Applications no longer need to specify TCP window sizes through Windows Sockets options. And IT administrators no longer need to manually configure a TCP receive window size for specific computers.

Here is what you need to do if you have the same issue:

– Run a command prompt (cmd.exe) as an Administrator
– Type: netsh interface tcp set global autotuninglevel=disabled

If you want to to re-enable it:
– Type: netsh interface tcp set global autotuninglevel=normal

In some cases you may need to use this command in addition to the above, but I didn’t have to:
– Type: netsh interface tcp set global rss=disabled

Original article:

Linux Windows Windows Vista

Enable Telnet in Vista

By default the Telnet command is not enabled. Here are the steps required to enable the Telnet command.

Start –> Computer
Select at the top ‘Uninstall or change a program’
To the left select ‘Turn Windows feature on or off’
Check the item named ‘Telnet Client’
Choose OK

Linux Windows 2008 Windows 7 Windows Vista

Recovery Console Commands

A number of commands are available within Recovery Console, some of them exclusive to the tool.

Here is a complete list of Recovery Console commands:

  • Attrib – The attrib command is used to change the attributes of a single file or a directory.
  • Batch – The batch command can be used to run a series of other Recovery Console commands located in a text file that you specify.
  • Bootcfg – The bootcfg command is used to build or modify the boot.ini file, a hidden file that is used to identify in what folder, on which partition, and on which hard drive Windows is located.
  • Chdir – The chdir command is used to display the drive letter and folder that you are currently in. Chdir can also be used to change the drive and/or directory that you want to work in.
  • Chkdsk – The chkdsk command, often referred to as “check disk”, is used to identify, and often times correct, certain hard drive errors.
  • Cls – The cls command clears the screen of all previously entered commands and other text.
  • Copy – The copy command does simply that – it copies a single file from one location to another.
  • Delete – The delete command is used to delete a single file.
  • Dir – The dir command is used to display a list of files and folders contained inside the folder that you are currently working in. The dir command also displays other important information like the hard drive’s serial number, the total number of files listed, their combined size, the total amount of free space left on the drive, and more.
  • Disable – The disable command is used to disable a system service or a device driver.
  • Diskpart – The diskpart command is used to create or delete partitions on hard drives.
  • Enable – The enable command is used to enable a system service or a device driver.
  • Exit – The exit command ends the Recovery Console session and then restarts the computer.
  • Expand – The expand command is used to extract a single file or a group of files from a compressed file.
  • Fixboot – The fixboot command writes a new partition boot sector to the system partition that you specify.
  • Fixmbr – The fixmbr command writes a new master boot record to the hard disk drive that you specify.
  • Format – The format command is used to format a drive in the file system that you specify.
  • Help – The help command provides more detailed information on any of the other Recovery Console commands.
  • Listsvc – The listsvc command will list the services and drivers available in your Windows installation.
  • Logon – The logon command is used to gain access to the Windows installation that you specify.
  • Map – The map command is used to display the partition and hard drive that each drive letter on the computer is currently assigned to.
  • Mkdir – The mkdir command is used to create a new folder.
  • More – The more command is used to display the information contained in a text file. The more command performs the same function as the type command.
  • Net use – The net use command is not available in Recovery Console, even though it is listed in the “Help” system as an available command. In other areas of Windows, the net use command is used to assign a drive letter to a shared network resource.
  • Rename – The rename command is used to change the name of the individual file that you specify.
  • Rmdir – The rmdir command is used to delete an existing and completely empty folder.
  • Set – The set command is used to enable or disable certain options in Recovery Console.
  • Systemroot – The systemroot command is used to set the %systemroot% environment variable as the current folder you are working in.
  • Type – The type command is used to display the information contained in a text file. The type command performs the same function as the more command.
Hibernate Linux Windows 7 Windows Vista

Windows Cannot Hibernate Computer with More Than 4 GB Memory

A limitation, feature or inconvenience of Windows (XP, Server 2003, Windows Vista, or Windows Server 2008) is that it cannot hibernate if it has more than 4 GB of RAM memory.  This is not a bug but by design, as Microsoft disables hibernation support on PC with more than 4GB physical memory because benchmark tests by Microsoft show that performance is poor on a computer that has more than 4 GB of memory with hibernation enabled, which requires as much disk space as RAM for the hibernation file, c:hiberfil.sys.

So if you have more than 4GB of RAM installed you won’t see the hibernation tab in the Power Options Properties dialog box.

More information from Microsoft – KB888575.