Windows/DOS commands
DOS/CLI commands
xcopy d:\ z: /s /e /c /f /z /h : xcopy from d: to z: , include sub dir, hidden file, etc.
cacls = change acl's. NT cli version of solaris setfacl.
compact = file compression util (list, maybe set?)
rdisk = nt4 create emergency recovery disks (erd)
regback = registry backup (add on?)
type file | find /i string
equiv to unix cat file | grep -i string
title any text string desired
Set the DOS CLI window to have the desired title
bgjob prog arg
run bg job inside a telnet session
so that even if telnet goes away, job remains.
There is still probably a nohup.
net use R: \\host\share password /user:DOMAIN\USERNAME
map network drive; funky session weireness, watch out use in script
net view
net user USERNAME PASSWORD /add
add user
net statistics server # info about uptime, etc
---
windows network stuff
tracert
nbtstat -n = list all comp
netsh (shell for config of dhcp, ras, wins, routing) [w2k]
runas
----
network broser cmd (some gui stuff) in Resource or Supplement kit.
net config rdr, see network device info, eg NetBT_E100B1
then,
browstat gb NetBT_E100B1
tell which one is the master browser in the network.
browmon
GUI browser monitor. similar to above
browstat status
browstat view NetBT_E100B1 NTDOM1
browstat getpdc NetBT_E100B1 NTDOM1
other obscure stuff, w2k only?
browstat dumpnet
nt4 / w2k reousrce pack
shutdown
\\computer : remote computer to shutdown (local if omitted)
/A : abort shutdown
/R : reboot
/T:xx : wait xx secs (def=30)
msg : message to user of shutdown
/C : force running app to close
Windows Startup
windows program auto load, from registry instead of Startup folder:
regedit
HKLM\Software\Microsoft\Windows\CurrentVersion\Run
HKCU\Software\Microsoft\Windows\CurrentVersion\Run
TLA:
HKCU HKEY_CURRENT_USER
HKLM HKEY_LOCAL_MACHINE
each program has an entry with full path as value, delete individually as needed.
XP has a System Configuration Utility under control panel | help support
section, so that all current startup places are listed and can be turned off via uncheck.
Many of these can be recognized as normal software, but just always run
at startup, which becomes anoying.
Some spyware may also add hooks here, but if they are really good,
spyware may replace legit system file and it will need a tool to check
if it is really spyware or the legit file!
Probably legit programs (could still be replaced by spyware!):
HKLM...Run mobsync.exe /logon. Sync Manager
KHCU...Run ctfmon. Office2003 text2speech [potentially key logger]
Additional crap that is loaded somehow...
C:\Program Files\Common Files\Real\Update_OB\
apperently lot of .dll and .exe which somehow get executed
rnms3270.dll is the realone messanger center crap that do lot of pop up messageging ads. Delete or rename them!
---
Internet MIME programs (may load all the time)
C:\winnt\Downloaded Program Files\
Each control has its own entry, right click and then choose remove
(eg, will see DBFullInst Control for the stupid SpyWare program).
---
SpyBot AntiSpyware program has tool that list all program that will be
loaded up at boot time and allow single click disactivation.
Unixfying Windows/DOS
- Cygwin add a lot of standard unix tools, libraries, etc. Includes a bash shell and X Window Manager for running X-based (GUI) apps.
- MKS Toolkit. This actually pre-date cygwin, but this is moneyware.
- SFU Microsoft Services for Unix. Add NFS client and server, telnet server, and other tools to bridge Unix and Windows machines. In the same manner that Samba teaches Unix to talk Windows, SFU teaches Windows to talk Unix.
"LYS on the outside, LKS in the inside"
"AUHAUH on the outside, LAPPLAPP in the inside"