Useful Commands

Network

Open ports and PIDs

netstat -nao

fport (from foundstone.com)

GUI tools Active Ports

Disabling Windows Firewall

netsh firewall set opmode disable

Controlling Services

sc query

Registry Commands

Export the Registry (all HKLM plus current user)

REGEDIT /E pathname

Export part of the Registry

REGEDIT /E pathname "RegPath"

Import a reg script

REGEDIT pathname

Silent import

REGEDIT /S pathname

Start the regedit GUI

REGEDIT 

Open multiple copies of GUI (XP and 2003 only)

REGEDIT -m

Windows Management Instrumentation Command Line (WMIC)

List all processes using the WMI command-line utility

WMIC /OUTPUT:C:\ProcessList.txt PROCESS get Caption,Commandline,Processid

or

WMIC /OUTPUT:C:\ProcessList.txt path win32_process get Caption,Processid,Commandline

http://technet.microsoft.com/en-us/library/bb742610.aspx

 
techdocs/windows/commandline.txt · Last modified: 2011/05/12 15:50 by earnoth
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki