NTAdmin


##########################################################
Files in system32 directory copied from http://www.symantec.com/connect/blogs/cwindowssystem32-files-explained
##########################################################
Create shortcut to Edit Domain Users and Groups
Right lick desktop, choose new->shortcut
For program to run enter: mmc.exe %systemroot%/System32/dsa.msc
Name it: Edit Domain Users and Groups
##########################################################
Tools to show shared library (dll) dependencies of exe.
Dependency Walker recommended by QT.
dumpbin.exe (part of Visual Studo).
In dos shell, run: "c:\Program Files\Microsoft Visual Studio 8\VC\vcvarsall.bat"
now dumpbin.exe will be in your path.
##########################################################
When installing cygwin, try to make it automated
cygwin faq.setup.automated
##########################################################
If you try to run make.exe in cygwin, and recieve the error
Makefile:14: *** missing separator. Stop.
this error can be caused by calling incorrect make binary.
Try to prepend path to your make.exe to the path.

##########################################################
Cygwin terminal: rxvt
Supirior to native terminal.
Setup:
1. Create bat file: C:\cygwin\home\Your_User\bin\rxvt.bat
Bat file contents:
@echo off
REM place in C:\cygwin\rxvt.bat and put
REM a shortcut on the desktop :-)
REM NOX
c:\cygwin\bin\rxvt -e /bin/bash -login
REM WITH X
REM DISPLAY="$DISPLAY.0" c:\cygwin\bin\rxvt -e /bin/bash -login
REM DISPLAY="$DISPLAY.0" c:\cygwin\bin\rxvt -sr -sk -backspace ^? &

2. Create shortcut on your desktop to the bat file
Target: C:\cygwin\home\You_User\bin\rxvt.bat
Start In: C:\cygwin\home\Your_User\bin

Change font and background in c:\cygwin\home\Your_User\.Xdefaults
#ifdef COLOR
*customization: -color
#endif
XTerm*background: black
XTerm*foreground: orange
XTerm*highlightColor: red
XTerm*cursorColor: yellow
XTerm*saveLines: 30000
XTerm*scrollbar: true
Rxvt*font: Lucida Console-14
Rxvt*background: Black
Rxvt*forground: Orange
Rxvt*savleLines: 300000
-- or--
rxvt*background: Black
rxvt*foreground: Orange
rxvt*scrollBar: true
rxvt*scrollBar_right: true
rxvt*font: -bitstream-bitstream vera sans mono-medium-r-normal--*-120-*-*-m-*-iso8859-1
rxvt*boldfont: -bitstream-bitstream vera sans mono-bold-r-normal--*-120-*-*-m-*-iso8859-1
rxvt*saveLines: 300000
rxvt*loginshell: true
rxvt.backspacekey: ^H

##########################################################
Having problems running nedit when sshed to cygwin host
1. Make sure forwarding isn't disabled:
chmod 666 /etc/sshd_config
vi /etc/sshd_config
Set: X11Forwarding yes
chmod 644 /etc/sshd_config
2. Make sure xauth is installed
Run setup.exe
Select keep, then search for xauth, and install
3. edit ~/.bash_profile
Add seciton like this:
# The next line fixes a bug in running nedit over ssh.
# Error:
# X Error of failed request: BadMatch (invalid parameter attributes)
# Major opcode of failed request: 70 (X_PolyFillRectangle)
# Serial number of failed request: 291
# Current serial number in output stream: 301
#
export XLIB_SKIP_ARGB_VISUALS=1

##########################################################
Set history to something resonable
edit ~/.bash_profile
Add seciton like this:
# configure history editing
set -o vi
export HISTSIZE=1000
export HISTFILE=~/.history
export HISTFILESIZE=1000
export EDITOR=vi

##########################################################
Best Windows Tool: "Computer Management" or compmgmt.msc
Or right click my computer->manage
##########################################################
Good merge utility for windows (but free): DiffMerge
Good merge utility for windows (but not free): araxis merge
##########################################################
Good Free zip utility for windows: Tugzip
########################################################## Internet Anonimity:
thunderbird_portable
firefox_portable
Tor: (side step the office proxy/monitoring)
http://en.wikipedia.org/wiki/Tor_(anonymity_network)
Tor on usb:
http://anonymous.livelyblog.com/2007/03/15/operator-a-great-way-to-make-your-own-tor-usb-keystick/

##########################################################
Tugzip - Free zip program
##########################################################
araxis - Non-Free Good diff tool
##########################################################
Found blog about running network Control pannel as different user,
since runas doesnt' work
Needing Explorer as admin

##########################################################
automate runas such that no password must be typed in manually,
REFERENCE: Why doesn't the RunAs program accept a password on the command line?
http://blogs.msdn.com/oldnewthing/archive/2004/11/29/271551.aspx
Summery: It was a design decision, because they didn't want people to do insecure stuff,
and because it would have added too many options to the runas UI.
Systeminternals was bought by M$, but the free tools are availble:
http://microsoft.com/technet/sysinternals/
Download the http://download.sysinternals.com/Files/PsTools.zip

##########################################################
Use JXplorer to brows your active directory LDAP,
And try to change some values, to test security.
You will need a client (aka JXplorer)
server: kdc.my.microsoft.domain
protocol: ldap v3
base dn: DC=my,DC=microsoft,DC=domain
Level: User+passwd
User DN: CN=Joe Smith,CN=Users,DC=my,DC=microsoft,DC=domain
Passwd:

##########################################################

Access is Denied installing XP sp2
Customize XP install CD
Free dhcp and tftp server for win32
Free libpcap and tcpdump for win32
BartPE - LiveCD of windows
Windows Terminal Server Printing
Windows Freeware Resource Kit
Windows hidden shtuff
Captive: The first free NTFS read/write filesystem for GNU/Linux
Copy of :http://security.tombom.co.uk/shatter.html
JSI, Inc. - Your Windows NT ® Resource
Winmag - Online Tips Db
NTBugtraq - Open Letter: Safe Email Practices
Advanced Disk Catalog, password recovery software, e-mail management software,advanced registry tracer
Winternals Software - Advanced System Tools
EarthWeb ITKnowledge Home Page
Experts Exchange, the #1 Knowledge Sharing Community on the Web.
Remote Administration of NT with webconfig
Remote Administration of NT with Hyena
Win2k SP2
win2k101.txt
Windows Patches
Holiday Dancer for winamp
ZoneAlarm - firewall type stuff for windows
Ad-Aware - Lavasoft helps you clean-up your windows system.
COMMUNICATE! PRO - Manage e-mail, faxes, and voice mail.

Commands to Remember: taskmgr, eventvwr, dcpromo, compmgmt.msc,

Problem: Acrobat Reader hangs when starting or reports that it can't create a temporary file. Accrobat reader creates a few of temp files for each file opened:

     C:\Documents and Settings\\Local Settings\Temp\Acr[0001-FFFF].tmp
They are all zero bites, but they are not always cleaned up in NT4/Win2K/Win2003/XP. After you have 65,535 of them, accrobat reader 6 will hang on opening, and 5 reports that it can't create a temp file. Deleting all the Acr*.tmp files solves the problem, but windows will hang if you try to delete all of them at one time. funny stuff.

 To join a domain from cli:   NETDOM /Domain:MYDOMAIN /user:adminuser /password:apassword MEMBER MYCOMPUTER /JOINDOMAIN

Disable last-accessed-time, regedit: HKLM\SYSTEM\CurrentControlSet\Control\FileSystem\NtfsDisableLastAccessUpdate

##########################################################
Procedure to automate network switch on XP via batch files
1. Set network settings via network control panel for static IP on fake
subnet.
2. Save the config to a file by running:
    netsh -c interface dump > c:\net_fixed.txt
3. Set network settings via network control panel for dhcp IP.
4. Save the config to a file by running:
    netsh -c interface dump > c:\net_dhcp.txt

To load a settings file for one of the networks above:
  netsh -f c:\net_.txt

5. Create bat scripts on desktop, so you can switch network config by
clicking:
i.e. dhcpnet.bat
   @echo off
   c:
   netsh -f c:\net_dhcp.txt

i.e. fakenet.bat
   @echo off
   c:
   netsh -f c:\net_fixed.txt
Procedure to reinstall XP without re-activating
##########################################################
The trick is to backup and restore 2 files:
C:\Windows\System32\wpa.dbl
C:\Windows\System32\wpa.bak

##########################################################
Backup and restore the registry
MS Article ID: 307545
md tmp
copy c:\windows\system32\config\system c:\windows\tmp\system.bak
copy c:\windows\system32\config\software c:\windows\tmp\software.bak
copy c:\windows\system32\config\sam c:\windows\tmp\sam.bak
copy c:\windows\system32\config\security c:\windows\tmp\security.bak
copy c:\windows\system32\config\default c:\windows\tmp\default.bak

delete c:\windows\system32\config\system
delete c:\windows\system32\config\software
delete c:\windows\system32\config\sam
delete c:\windows\system32\config\security
delete c:\windows\system32\config\default

copy c:\windows\repair\system c:\windows\system32\config\system
copy c:\windows\repair\software c:\windows\system32\config\software
copy c:\windows\repair\sam c:\windows\system32\config\sam
copy c:\windows\repair\security c:\windows\system32\config\security
copy c:\windows\repair\default c:\windows\system32\config\default