RUN:
msiexec /regserver > Restart Installer service
sysdm.cpl > Computer Properties
compmgmt.msc > Computer Management
devmgmt.msc > Device Manager
diskmgmt.msc > Disk Manger
explorer > Windows Explorer
iexplore > Internet Explorer
services.msc
eventvwr.msc
mstsc /console > RDP
cmd > Command prompt
calc > Calculator
notepad
dfrg.msc
dsa.msc > Active Directory Users & Computers console
fsmgmt.msc > File share management console
secpol.msc > Local Security Policy console
gpedit.msc > Group Policy console
perfmon.msc > Performance monitor
taskschd.msc > Task scheduler
gpupdate /force
CMD:
nslookup
netstat
netsh int IP reset (reset IP settings)
netsh winsock reset (reset Winsock)
netcfg -d (wipes out network configuration)
arp /a
getmac
ipconfig /all
ifconfig
iwconfig
ipconfig /release
ipconfig /renew
ipconfig /flushdns
ipconfig /registerdns
tracert
pathping
systeminfo
winver = Windows version
diskpart > Disk Partitioner
diskpart
list disk
select disk=n
clean
create partition primary
{select partition 1} optional
active
format fs=fat32 quick
assign
exit”
vssadmin
vssadmin list shadows
vssadmin list volumes
vssadmin list shadowstorage
vssadmin resize shadowstorage /for=C: /on=C: /maxsize=20gb (kb-mb-gb-tb-pb (pata-)-eb (exa-)
chkdsk /f
sfc /scannow
del /f “filename”
net [accounts | computer | config | continue | file | group | help | helpmsg | localgroup | name | pause | print | send | session | share | start | statistics | stop | time | use | user | view]
Shortcut Keys:
Win + M = minimize all
Win + L = lock session
Shift + right-click > Run As
Windows Regisgration (Product Key reset):
> run > oobe /msoobe /a
To merge file1, file2, file3 into file4:
type file1 file2 file3 >> file4
To merge file1, file2, file3 into file4:
copy file1+file2+file3 file4
To send email from a command prompt:
telnet netech4u.com 25 (a valid smtp domain)
helo comcast.com (the actual smtp domain you are sending from)
mail from:user@myemail.com (a valid email address at the current smtp domain)
rcpt to:user@otheremail.com (desired recepient)
data
“Enter the message here…
. (end message with a single “”.”” on a line by itself)
Press “”Enter”” to send the message”
QTo copy a file + date/time stamp it:
ren D:\folder\file.log file-%date:~4,2%-%date:~7,2%-%date:~10,4%@%time:~0,2%%time:~3,2%%time:~6,2%h%.log
ren D:\folder\file.log file-%date:~4,2%-%date:~7,2%-%date:~10,4%@%time:~1,1%%time:~3,2%%time:~6,2%h%.log
Rem rename command is done twice (2) to allow for 1 or 2 digit hour,
Rem If before 10am (1digit) hour, rename starting at location (0) for (2) chars,
Rem will error out, as location (0) will have a space and space is invalid character for file name,
Rem so second rename will be used.
Rem if equal 10am or later (2 digit hour) then first rename will work and second will not
Rem as file2.log will not be found (it is already renamed)
To date stamp a file:
date /t > d:\folder\file.txt IF EXIST D:\folder\file.txt. ( type file1.txt file2.txt file3.txt >> D:\folder\file4.csv.)
General commands:
doskey /history = Displays the history of all commands used in current session
F1 = retypes the previous command one character at a time
F2 = brings up a dialog and asks “Enter the char to copy up to:”
F3 = retypes the last command in full
F4 = brings up a dialog and asks “Enter char to delete up to:”
F5 = same as for F3
F6 = Print EOF character (Ctrl+Z)
F7 = brings up a dialog of all the recent command history
F8 = brings up each of the most recent commands, one at a time
F9 = brings up a dialog and asks “Enter command number:”
q.bat
@echo off
echo —————- %date% %time% —————- >> “”%userprofile%\cmdHistory.txt””
doskey /history >> “”%userprofile%\cmdHistory.txt””
exit
h.bat
@echo off
if %1. == . (
type “”%userprofile%\cmdHistory.txt”” 2> nul
echo —————- %date% %time% —————-
doskey /history
) else (
if /i %1. == /edit. (
start “”Revising History…”” “”%userprofile%\cmdHistory.txt””
) else (
echo ——————————————- Previous Windows
type “”%userprofile%\cmdHistory.txt”” 2> nul | findstr /i “”%*””
echo ———————————————— This Window
doskey /history | findstr /i “”%*””
)
)