RAllen Windows Server 2003 Command-Line Tools
RAllen Windows Server 2003 Command-Line Tools
Agenda
Why Use Command-Line Tools? Microsoft Command-Line Tool Resources Other Command-Line Tool Resources Q/A
Many of the new tools have a /S option for targeting a remote machine
systeminfo /S rallen-srv1
With Sysinternals psexec you can even run non-remoteable utilities remotely
psexec \\rallen-srv1 cmd /k dir c:\
Windows Server 2003 Windows Resource Kit Windows Support Tools Downloadable Tools SFU 3.5
ACLs:
acldiag Detects and reports discrepancies in ACLs of objects in Active Directory. It can also reapply a security delegation template to an ACL xcacls Query and modify file ACLs dsacls Query and modify Active Directory ACLs
Network:
portqry Robust port query tool netdiag Network connectivity diagnostics tool netcap Command-line version of Netmon
SFU 3.5
Available for free now: http://tinyurl.com/yv969 Contains many popular UNIX tools: ksh ls wc vi cat cron / crontab grep / egrep / fgreg head / tail cp / mv / rm ps top
Sysinternals (http://www.sysinternals.com/)
handle Display the files and folders a process has open listdlls Display the DLLs that has a process has loaded or the processes that are using a particular DLL netstatp View open ports and the processes and protocols associated with them sdelete Securely delete files adrestore Enumerate and restore deleted objects in AD junction Similar to linkd; creates junction points (i.e., file/folder links)
Joeware (http://www.joeware.net/)
adfind Robust and flexible AD query utility (the best around) oldcmp Find old computer accounts and disable or delete them unlock Find and unlock locked out accounts adqueueloop Similar to repadmin /queue but includes the number of items in the inbound queue and shows the top item in the queue getuserinfo net user on steroids secdata Retrieve security-related data about users from AD memberOf Retrieve a users group membership from AD (shows nested group membership) sectok Displays the SID and token (including all sids/names of groups that token contains) of a user cpau Similar to runas, but lets you specify a password as an option
Miscellaneous
blat Sends the contents of a file in an e-mail using SMTP (http://www.interlog.com/~tcharron/blat.html) dig Advanced DNS query utility (http://pigtail.net/LRP/dig/) whois Query the whois database (http://pigtail.net/LRP/dig/) setacl Modify the ACL (DACL and SACL) on files, the registry, services, printers, and shares (http://setacl.sourceforge.net/) compname Dynamically generate and set the computer name based the serial number, system GUID, MAC address, IP address, date, DNS name, or a random element (http://www.willowhayes.co.uk/) Other sites: http://www.optimumx.com/download/ http://www.systemtools.com/free_frame.htm
Q/A
Thank you for your time! Email: [email protected]
Active Directory Cookbook (Oct 2003) Active Directory, 2nd Edition (Apr 2003) DNS on Windows Server 2003 (Dec 2003) Windows Server Cookbook (Summer 2004) Windows XP Cookbook (Fall 2004) Windows Server Hacks (Apr 2004) Exchange Server Cookbook (Fall 2004) Securing Windows Server 2003 (Summer 2004) Managing Windows Server 2003 (Summer 2004)