{"id":6246,"date":"2007-02-18T12:00:57","date_gmt":"2007-02-18T20:00:57","guid":{"rendered":"http:\/\/www.lee.org\/blog\/?p=6246"},"modified":"2013-04-23T11:32:36","modified_gmt":"2013-04-23T18:32:36","slug":"useful-windows-commands","status":"publish","type":"post","link":"https:\/\/www.lee.org\/blog\/2007\/02\/18\/useful-windows-commands\/","title":{"rendered":"Useful Windows Commands"},"content":{"rendered":"<p>Commands for Windows XP<\/p>\n<p>The command line isn&#8217;t dead! I compiled these commands from all over. Use them well.<\/p>\n<p>Windows XP Recovery Console<br \/>\nThe only 2 really useful things you can do with it are:<br \/>\nfixboot &#8211; might magically fix the boot record<br \/>\nfixmbr &#8211; might magically fix the mbr<br \/>\n&#8212;&#8212;&#8212;&#8211;<\/p>\n<p>chkdsk c: \/v \/r \/x Take a long time to look at C:\\ and fix errors<\/p>\n<p>compmgmt.msc \u00a0 disk management in XP<\/p>\n<p>net use<br \/>\nFind out what file shares and stuff you have open. Lots of bells and whistles on this command<\/p>\n<p>bootcfg<br \/>\nView your boot loader settings, such as your default OS and selection timeout, as well as your boot entries and load options.<\/p>\n<p>defrag<br \/>\nYou probably already guessed that this defrags your hard drive.<\/p>\n<p>diskpart<br \/>\nManages your disk partitions. After you type &#8220;diskpart&#8221; into your command prompt, your prompt will become &#8220;DISKPART.&#8221; Type a question mark to get a list of possible arguments. Type exit to leave diskpart.<\/p>\n<p>driverquery<br \/>\nWill get you a nice list of your drivers and their properties.<\/p>\n<p>fsutil<br \/>\nThis is a handy command. You can do everything from managing your hardlinks to querying the free space in a volume. Type &#8220;fsutil&#8221; into your command prompt, and you&#8217;ll see a list of options. I choose &#8220;fsinfo&#8221; from the list, so I type &#8220;fsutil fsinfo&#8221; into the prompt. Now I get even more options, but I choose drives by typing &#8220;fsutil fsinfo drives.&#8221; It&#8217;s fun, it&#8217;s easy, and you&#8217;ll get the hang of it. Explore this utility. There are a lot of cool features and hidden twists.<\/p>\n<p>getmac<br \/>\nThis gets the MAC (Media Access Control) address.<\/p>\n<p>gpresult<br \/>\nGet the RSoP, user settings, and computer group policy settings.<\/p>\n<p>helpctr<br \/>\nStarts the Help and Support Center.<\/p>\n<p>ipseccmd<br \/>\nConfigures Internet protocol security (IPSec) policies in the directory service or in a local or remote Registry. Ipseccmd is a command-line version of the IP Security Policies Microsoft Management Console (MMC) snap-in.<\/p>\n<p>netsh<br \/>\nA network configuration tool. Type &#8220;netsh&#8221; to enter the tool, or &#8220;netsh \/?&#8221; to learn more about it. To exit this tool, type &#8220;exit&#8221; at the &#8220;netsh&amp;gt;&#8221; prompt.<\/p>\n<p>openfiles<br \/>\nAllows an administrator to display or disconnect open files in XP professional. Type &#8220;openfiles \/?&#8221; for a list of possible parameters.<\/p>\n<p>pagefileconfig<br \/>\nDisplays and configures the paging file Virtual Memory settings of a system.<\/p>\n<p>prncnfg<br \/>\nConfigures or displays configuration information about a printer.<\/p>\n<p>prnjobs<br \/>\nPauses, resumes, cancels, and lists print jobs.<\/p>\n<p>recover<br \/>\nThis command attempts to recover readable information from a damaged disk. Type &#8220;recover&#8221; to get the syntax.<\/p>\n<p>reg<br \/>\nThe console registry tool. Get syntax help when you type &#8220;reg&#8221; into the prompt. You can export the registry, copy, restore, compare, and more.<\/p>\n<p>schtasks<br \/>\nThe administrator can schedule, run, change, or delete tasks on a local or remote machine. Type &#8220;schtasks \/?&#8221; without the quotes for a list of options.<\/p>\n<p>sfc<br \/>\nThe system file checker scans protected system files and replaces the ones you (or your applications) hacked beyond repair with the real, official Microsoft versions. Type &#8220;sfc&#8221; into the command prompt to get a list of options. Sometimes this will magically fix oddly broken copmuters<\/p>\n<p>shutdown<br \/>\nYou can shut down or restart your own computer, or an administrator can shut down or restart a remote computer. Type &#8220;shutdown&#8221; into your command prompt to see a list of possible arguments.<\/p>\n<p>systeminfo<br \/>\nBasic system configuration information, such as the system type, the processor type, your time zone, your virtual memory settings, and much more.<\/p>\n<p>tasklist<br \/>\nWant to know what&#8217;s going on behind the scenes? Type &#8220;tasklist&#8221; into the command prompt, and get a list of current processes.<\/p>\n<p>taskkill<br \/>\nNow that you know what&#8217;s going on behind the scenes, maybe you want to shut a few of these extraneous tasks down. That&#8217;s where taskkill comes in. Type &#8220;taskkill \/?&#8221; for a quick lesson in the syntax of the command, then shut down all those random processes. I just killed my MS messenger by typing &#8220;taskkill \/PID 1680.&#8221; I got the PID from running tasklist, above.<\/p>\n<p>typeperf<br \/>\nWrites performance-counter data to the command window or to a supported log file format.<\/p>\n<p>run &#8220;defrag.exe c:&#8221; as a scheduled task in Control Panel<\/p>\n<p>netstat<\/p>\n<p>ipconfig<\/p>\n<p>services.msc<\/p>\n<p>msconfig<\/p>\n<p>ntbackup<\/p>\n<p>nslookup<\/p>\n<p>bootcfg<\/p>\n<p>applications<\/p>\n<p>anasil &#8211; sniffer<br \/>\nEtherDetect &#8211; sniffer<br \/>\ndsniff-1.8-win32-static &#8211; sniffer including mail password sniffer<br \/>\ncloneCD &#8211; CD copier<\/p>\n<p>http:\/\/www.ntfs.com &#8211; all about the NTFS file system<br \/>\nhttp:\/\/www.active-undelete.com\/ &#8211; recover deleted files from NTFS<br \/>\nhttp:\/\/www.file-recovery.net\/ &#8211; another undelete program<br \/>\nhttp:\/\/www.partition-recovery.com\/ &#8211; undelete a partition<\/p>\n<p>password hacking:<br \/>\n&#8211; SAMInside and lots more from http:\/\/www.insidepro.com<br \/>\n&#8211; http:\/\/www.elcomsoft.com<\/p>\n<p>http:\/\/www.insecure.org\/tools.html<\/p>\n<p>Recover information from physically destroyed hard drives http:\/\/www.drivesavers.com (use my Reseller Code, &#8220;DS14221&#8221; for a big discount from them)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Commands for Windows XP The command line isn&#8217;t dead! I compiled these commands from all over. Use them well. Windows XP Recovery Console The only 2 really useful things you can do with it are: fixboot &#8211; might magically fix the boot record fixmbr &#8211; might magically fix the mbr &#8212;&#8212;&#8212;&#8211; chkdsk c: \/v \/r [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,14],"tags":[],"class_list":["post-6246","post","type-post","status-publish","format-standard","hentry","category-geekery","category-product-recommendations"],"_links":{"self":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/6246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/comments?post=6246"}],"version-history":[{"count":0,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/6246\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/media?parent=6246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/categories?post=6246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/tags?post=6246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}