Archive for category Command Line

command line for windowes-Suresh Dangi

Calc - Calculator
Cfgwiz32 - ISDN Configuration Wizard
Charmap - Character Map
Chkdisk - Repair damaged files
Cleanmgr - Cleans up hard drives
Clipbrd - Windows Clipboard viewer
Cmd - Opens a new Command Window (cmd.exe)
Control - Displays Control Panel
Dcomcnfg - DCOM user security
Debug - Assembly language programming tool
Defrag - Defragmentation tool
Drwatson - Records programs crash & snapshots
Dxdiag - DirectX Diagnostic Utility
Explorer - Windows Explorer
Fontview - Graphical font viewer
Ftp - ftp.exe program
Hostname - Returns Computer's name
Ipconfig - Displays IP configuration for all network adapters
Jview - Microsoft Command-line Loader for Java classes
MMC - Microsoft Management Console
Msconfig - Configuration to edit startup files
Msinfo32 - Microsoft System Information Utility
Nbtstat - Displays stats and current connections using NetBios over TCP/IP
Netstat - Displays all active network connections
Nslookup - Returns your local DNS server
Odbcad32 - ODBC Data Source Administrator
Ping - Sends data to a specified host/IP
Regedit - registry Editor
Regsvr32 - register/de-register DLL/OCX/ActiveX
Regwiz - Reistration wizard
Sfc /scannow - Sytem File Checker
Sndrec32 - Sound Recorder
Sndvol32 - Volume control for soundcard
Sysedit - Edit system startup files (config.sys, autoexec.bat, win.ini, etc.)
Systeminfo - display various system information in text console
Taskmgr - Task manager
Telnet - Telnet program
Taskkill - kill processes using command line interface
Tskill - reduced version of Taskkill from Windows XP Home
Tracert - Traces and displays all paths required to reach an internet host
Winchat - simple chat program for Windows networks
Winipcfg - Displays IP configuration

Management Consoles

certmgr.msc – Certificate Manager
ciadv.msc – Indexing Service
compmgmt.msc – Computer management
devmgmt.msc – Device Manager
dfrg.msc – Defragment
diskmgmt.msc – Disk Management
fsmgmt.msc – Folder Sharing Management
eventvwr.msc – Event Viewer
gpedit.msc – Group Policy -XP Pro only
iis.msc – Internet Information Services
lusrmgr.msc – Local Users and Groups
mscorcfg.msc – Net configurations
ntmsmgr.msc – Removable Storage
perfmon.msc – Performance Manager
secpol.msc – Local Security Policy
services.msc – System Services
wmimgmt.msc – Windows Management

Shortcuts

access.cpl – Accessibility Options
hdwwiz.cpl – Add New Hardware Wizard
appwiz.cpl – dd/Remove Programs
timedate.cpl – Date and Time Properties
desk.cpl – Display Properties
inetcpl.cpl – Internet Properties
joy.cpl – Joystick Properties
main.cpl keboard – Keyboard Properties
main.cpl – Mouse Properties
ncpa.cpl – Network Connections
ncpl.cpl – Network Properties
telephon.cpl – Phone and Modem options
powercfg.cpl – Power Management
intl.cpl – Regional settings
mmsys.cpl sounds – Sound Properties
mmsys.cpl – Sounds and Audio Device Properties
sysdm.cpl – System Properties
nusrmgr.cpl – User settings
firewall.cpl – Firewall Settings (sp2)
wscui.cpl – Security Center (sp2)

Windows Environment Commands

%ALLUSERSPROFILE% – Open the All User’s Profile
%HomeDrive% – Opens your home drive e.g. C:\
%UserProfile% – Opens you User’s Profile
%temp% Opens – temporary file Folder
%systemroot% – Opens Windows folder

Wupdmgr – Takes you to Microsoft Windows Update

General keyboard shortcuts

CTRL+C(Copy)
CTRL+X (Cut)
CTRL+Z (Undo)
DELETE (Delete)
SHIFT+DELETE (Delete the selected item permanently without placing the item in the Recycle Bin)
CTRL while dragging an item (Copy the selected item)
CTRL+SHIFT while dragging an item (Create a shortcut to the selected item)
F2 key (Rename the selected item)
CTRL+RIGHT ARROW (Move the insertion point to the beginning of the next word)
CTRL+LEFT ARROW (Move the insertion point to the beginning of the previous word)
CTRL+DOWN ARROW (Move the insertion point to the beginning of the next paragraph)
CTRL+SHIFT with any of the arrow keys (Highlight a block of text)
CTRL+UP ARROW (Move the insertion point to the beginning of the previous paragraph)
SHIFT with any of the arrow keys (Select more than one item in a window or on the desktop, or select text in a document)
CTRL+A (Select all)
F3 key (Search for a file or a folder)
ALT+ENTER (View the properties for the selected item)
ALT+F4 (Close the active item, or quit the active program)
ALT+ENTER (Display the properties of the selected object)
ALT+SPACEBAR (Open the shortcut menu for the active window)
CTRL+F4 (Close the active document in programs that enable you to have multiple documents open simultaneously)
ALT+TAB (Switch between the open items)
ALT+ESC (Cycle through items in the order that they had been opened)
F6 key (Cycle through the screen elements in a window or on the desktop)
F4 key (Display the Address bar list in My Computer or Windows Explorer)
SHIFT+F10 (Display the shortcut menu for the selected item)
ALT+SPACEBAR (Display the System menu for the active window)
CTRL+ESC (Display the Start menu)
ALT+Underlined letter in a menu name (Display the corresponding menu)
Underlined letter in a command name on an open menu (Perform the corresponding command)
F10 key (Activate the menu bar in the active program)
RIGHT ARROW (Open the next menu to the right, or open a submenu)
LEFT ARROW (Open the next menu to the left, or close a submenu)
F5 key (Update the active window)
BACKSPACE (View the folder one level up in My Computer or Windows Explorer)
ESC (Cancel the current task)
SHIFT when you insert a CD-ROM into the CD-ROM drive (Prevent the CD-ROM from automatically playing)
CTRL+SHIFT+ESC (Open Task Manager) Dialog box keyboard shortcuts

If you press SHIFT+F8 in extended selection list boxes, you enable extended selection mode. In this mode, you can use an arrow key to move a cursor without changing the selection. You can press CTRL+SPACEBAR or SHIFT+SPACEBAR to adjust the selection. To cancel extended selection mode, press SHIFT+F8 again. Extended selection mode cancels itself when you move the focus to another control.

CTRL+TAB (Move forward through the tabs)
CTRL+SHIFT+TAB (Move backward through the tabs)
TAB (Move forward through the options)
SHIFT+TAB (Move backward through the options)
ALT+Underlined letter (Perform the corresponding command or select the corresponding option)
ENTER (Perform the command for the active option or button)
SPACEBAR (Select or clear the check box if the active option is a check box)
Arrow keys (Select a button if the active option is a group of option buttons)
F1 key (Display Help)
F4 key (Display the items in the active list)
BACKSPACE (Open a folder one level up if a folder is selected in the Save As or Open dialog box)

Microsoft natural keyboard shortcuts

Windows Logo+BREAK (Display the System Properties dialog box)
Windows Logo+D (Display the desktop)
Windows Logo+M (Minimize all of the windows)
Windows Logo+SHIFT+M (Restore the minimized windows)
Windows Logo+E (Open My Computer)
Windows Logo+F (Search for a file or a folder)
CTRL+Windows Logo+F (Search for computers)
Windows Logo+F1 (Display Windows Help)
Windows Logo+ L (Lock the keyboard)
Windows Logo+R (Open the Run dialog box)
Windows Logo+U (Open Utility Manager)

Accessibility keyboard shortcuts

Right SHIFT for eight seconds (Switch FilterKeys either on or off)
Left ALT+left SHIFT+PRINT SCREEN (Switch High Contrast either on or off)
Left ALT+left SHIFT+NUM LOCK (Switch the MouseKeys either on or off)
SHIFT five times (Switch the StickyKeys either on or off)
NUM LOCK for five seconds (Switch the ToggleKeys either on or off)
Windows Logo +U (Open Utility Manager)

Windows Explorer keyboard shortcuts

END (Display the bottom of the active window)
HOME (Display the top of the active window)
NUM LOCK+Asterisk sign (*) (Display all of the subfolders that are under the selected folder)
NUM LOCK+Plus sign (+) (Display the contents of the selected folder)
NUM LOCK+Minus sign (-) (Collapse the selected folder)
LEFT ARROW (Collapse the current selection if it is expanded, or select the parent folder)
RIGHT ARROW (Display the current selection if it is collapsed, or select the first subfolder)

Shortcut keys for Character Map

After you double-click a character on the grid of characters, you can move through the grid by using the keyboard shortcuts
RIGHT ARROW (Move to the right or to the beginning of the next line)
LEFT ARROW (Move to the left or to the end of the previous line)
UP ARROW (Move up one row)
DOWN ARROW (Move down one row)
PAGE UP (Move up one screen at a time)
PAGE DOWN (Move down one screen at a time)
HOME (Move to the beginning of the line)
END (Move to the end of the line)
CTRL+HOME (Move to the first character)
CTRL+END (Move to the last character)
SPACEBAR (Switch between Enlarged and Normal mode when a character is selected)

Microsoft Management Console (MMC) main window keyboard shortcuts

• CTRL+O (Open a saved console)
CTRL+N (Open a new console)
CTRL+S (Save the open console)
CTRL+M (Add or remove a console item)
CTRL+W (Open a new window)
F5 key (Update the content of all console windows)
ALT+SPACEBAR (Display the MMC window menu)
ALT+F4 (Close the console) • ALT+A (Display the Action menu)
ALT+V (Display the View menu)
ALT+F (Display the File menu)
ALT+O (Display the Favorites menu)

MMC console window keyboard shortcuts

CTRL+P (Print the current page or active pane)
ALT+Minus sign (-) (Display the window menu for the active console window)
SHIFT+F10 (Display the Action shortcut menu for the selected item)
F1 key (Open the Help topic, if any, for the selected item)
F5 key (Update the content of all console windows)
CTRL+F10 (Maximize the active console window)
CTRL+F5 (Restore the active console window)
ALT+ENTER (Display the Properties dialog box, if any, for the selected item)
F2 key (Rename the selected item)
CTRL+F4 (Close the active console window. When a console has only one console window, this shortcut closes the console)

Remote desktop connection navigation

CTRL+ALT+END (Open the Microsoft Windows NT Security dialog box)
ALT+PAGE UP (Switch between programs from left to right)
ALT+PAGE DOWN (Switch between programs from right to left)
ALT+INSERT (Cycle through the programs in most recently used order)
ALT+HOME (Display the Start menu)
CTRL+ALT+BREAK (Switch the client computer between a window and a full screen)
ALT+DELETE (Display the Windows menu)
CTRL+ALT+Minus sign (-) (Place a snapshot of the entire client window area on the Terminal server clipboard and provide the same functionality as pressing ALT+PRINT SCREEN on a local computer.)
CTRL+ALT+Plus sign (+) (Place a snapshot of the active window in the client on the Terminal server clipboard and provide the same functionality as pressing PRINT SCREEN on a local computer.)

Microsoft Internet Explorer navigation

CTRL+B (Open the Organize Favorites dialog box)
CTRL+E (Open the Search bar)
CTRL+F (Start the Find utility)
CTRL+H (Open the History bar)
CTRL+I (Open the Favorites bar)
CTRL+L (Open the Open dialog box)
CTRL+N (Start another instance of the browser with the same Web address)
CTRL+O (Open the Open dialog box, the same as CTRL+L)
CTRL+R (Update the current Web page)
CTRL+ CTRL+P (Open the Print dialog box)
W (Close the current window)

Note Some keyboard shortcuts may not work if StickyKeys is turned on in Accessibility Options, Some of the Terminal Services client shortcuts that are similar to the shortcuts in Remote Desktop Sharing are not available when you use Remote Assistance in Windows XP Home Edition.

Microsoft Office run commands
If the Microsoft Office is installed you can use following run commands to run its components:

winword – Microsoft Word
excel – Microsoft Excel
powerpnt – Microsoft PowerPoint
msaccess – Microsoft Access
outlook – Microsoft Outlook
ois – Microsoft Picture Manager

Leave a comment

USe full Run Commands-Suresh Dangi

To Access… Run Command
Accessibility Controls -access.cpl
Accessibility Wizard -accwiz
Add Hardware Wizard -hdwwiz.cpl
Add/Remove Programs -appwiz.cpl
Administrative Tools -control admintools
Adobe Acrobat (if installed) -acrobat
Adobe Designer (if installed) -formdesigner
Adobe Distiller (if installed) -acrodist
Adobe ImageReady (if installed) -imageready
Adobe Photoshop (if installed) -photoshop
Automatic Updates -wuaucpl.cpl
Bluetooth Transfer Wizard -fsquirt
Calculator -calc
Certificate Manager -certmgr.msc
Character Map -charmap
Check Disk Utility -chkdsk
Clipboard Viewer -clipbrd
Command Prompt -cmd
Component Services -dcomcnfg
Computer Management -compmgmt.msc
Control Panel -control
Date and Time Properties -timedate.cpl
DDE Shares -ddeshare
Device Manager -devmgmt.msc
Direct X Control Panel (if installed)* -directx.cpl
Direct X Troubleshooter -dxdiag
Disk Cleanup Utility -cleanmgr
Disk Defragment -dfrg.msc
Disk Management -diskmgmt.msc
Disk Partition Manager -diskpart
Display Properties -control desktop
Display Properties -desk.cpl
Display Properties (w/Appearance Tab Preselected) -control color
Dr. Watson System Troubleshooting Utility -drwtsn32
Driver Verifier -Utility verifier
Event Viewer -eventvwr.msc
Files and Settings Transfer Tool -migwiz
File Signature Verification Tool -sigverif
Findfast -findfast.cpl
Firefox (if installed) -firefox
Folders Properties -folders
Fonts -control fonts
Fonts Folder -fonts
Free Cell Card Game -freecell
Game Controllers -joy.cpl
Group Policy Editor (XP Prof) -gpedit.msc
Hearts Card Game -mshearts
Help and Support -helpctr
HyperTerminal -hypertrm
Iexpress Wizard -iexpress
Indexing Service -ciadv.msc
Internet Connection Wizard -icwconn1
Internet Explorer -iexplore
Internet Properties -inetcpl.cpl
Internet Setup Wizard -inetwiz
IP Configuration (Display Connection Configuration) -ipconfig /all
IP Configuration (Display DNS Cache Contents) -ipconfig /displaydns
IP Configuration (Delete DNS Cache Contents) -ipconfig /flushdns
IP Configuration (Release All Connections) -ipconfig /release
IP Configuration (Renew All Connections) -ipconfig /renew
IP Configuration (Refreshes DHCP & Re-Registers DNS)-ipconfig /registerdns
IP Configuration (Display DHCP Class ID) -ipconfig /showclassid
IP Configuration (Modifies DHCP Class ID) -ipconfig /setclassid
Java Control Panel (if installed) -jpicpl32.cpl
Java Control Panel (if installed) -javaws
Keyboard Properties -control keyboard
Local Security Settings -secpol.msc
Local Users and Groups -lusrmgr.msc
Logs You Out Of Windows -logoff
Malicious Software Removal Tool -mrt
Microsoft Access (if installed) -msaccess
Microsoft Chat -winchat
Microsoft Excel (if installed) -excel
Microsoft Frontpage (if installed) -frontpg
Microsoft Movie Maker -moviemk
Microsoft Paint -mspaint
Microsoft Powerpoint (if installed) -powerpnt
Microsoft Word (if installed) -winword
Microsoft Syncronization Tool -mobsync
Minesweeper Game -winmine
Mouse Properties -control mouse
Mouse Properties -main.cpl
Nero (if installed) -nero
Netmeeting -conf
Network Connections -control netconnections
Network Connections -ncpa.cpl
Network Setup Wizard -netsetup.cpl
Notepad -notepad
Nview Desktop Manager (if installed) -nvtuicpl.cpl
Object Packager -packager
ODBC Data Source Administrator -odbccp32.cpl
On Screen Keyboard -osk
Opens AC3 Filter (if installed) -ac3filter.cpl
Outlook Express -msimn
Paint -pbrush
Password Properties -password.cpl
Performance Monitor -perfmon.msc
Performance Monitor -perfmon
Phone and Modem Options -telephon.cpl
Phone Dialer -dialer
Pinball Game -pinball
Power Configuration -powercfg.cpl
Printers and Faxes -control printers
Printers Folder -printers
Private Character Editor -eudcedit
Quicktime (If Installed) -QuickTime.cpl
Quicktime Player (if installed) -quicktimeplayer
Real Player (if installed) -realplay
Regional Settings -intl.cpl
Registry Editor -regedit
Registry Editor -regedit32
Remote Access Phonebook -rasphone
Remote Desktop -mstsc
Removable Storage -ntmsmgr.msc
Removable Storage Operator Requests -ntmsoprq.msc
Resultant Set of Policy (XP Prof) -rsop.msc
Scanners and Cameras -sticpl.cpl
Scheduled Tasks control -schedtasks
Security Center -wscui.cpl
Services -services.msc
Shared Folders -fsmgmt.msc
Shuts Down Windows -shutdown
Sounds and Audio -mmsys.cpl
Spider Solitare Card Game -spider
SQL Client Configuration -cliconfg
System Configuration Editor -sysedit
System Configuration Utility -msconfig
System File Checker Utility (Scan Immediately) -sfc /scannow
System File Checker Utility (Scan Once At The Next Boot)sfc /scanonce
System File Checker Utility (Scan On Every Boot) -sfc /scanboot
System File Checker Utility (Return Scan Setting To Default) sfc /revert
System File Checker Utility (Purge File Cache) -sfc /purgecache
System File Checker Utility (Sets Cache Size to size x)-sfc /cachesize=x
System Information -msinfo32
System Properties -sysdm.cpl
Task Manager -taskmgr
TCP Tester -tcptest
Telnet Client -telnet
Tweak UI (if installed) -tweakui
User Account Management -nusrmgr.cpl
Utility Manager -utilman
Windows Address Book -wab
Windows Address Book Import Utility -wabmig
Windows Backup Utility (if installed) -ntbackup
Windows Explorer -explorer
Windows Firewall -firewall.cpl
Windows Magnifier -magnify
Windows Management Infrastructure -wmimgmt.msc
Windows Media Player -wmplayer
Windows Messenger -msmsgs
Windows Picture Import Wizard (need camera connected) -wiaacmgr
Windows System Security Tool -syskey
Windows Update Launches -wupdmgr
Windows Version (to show which version of windows) -winver
Windows XP Tour Wizard -tourstart
Wordpad -write

Leave a comment

Windows XP/2000 Commands & Tools-Suresh Dangi

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 ” and watch it go.
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.

Leave a comment

Convert FAT – NTFS :Suresh Dangi

To convert a FAT partition to NTFS, perform the following steps.

1) Open ‘Command Prompt’.

2) At the command prompt, type the following-

CONVERT [driveletter]: /FS:NTFS.

‘Convert.exe’ will attempt to convert the partition to NTFS.

NOTE :- Although the chance of corruption or data loss during the conversion from FAT to NTFS is minimal, it is best to perform a full backup of the data on the drive that it is to be converted prior to executing the convert command.

Leave a comment