-------------------------------------------------------------------------------
 
Whoami 2.0 for Windows 
By Aubrey Hall 
 
-------------------------------------------------------------------------------
Supported Platforms 
-------------------------------------------------------------------------------
 
Windows NT 
Windows 2000 
Windows XP 
 
-------------------------------------------------------------------------------
Contact 
aubhall@yahoo.com 
 
-------------------------------------------------------------------------------
DISCLAIMER
-------------------------------------------------------------------------------
THIS PROGRAM IS RELEASED WITH NO GUARANTEES OR WARRANTIES	
OF ANY KIND.THE AUTHOR HAS MADE EVERY EFFORT TO TEST THE PROGRAM,	
BUT IS NOT RESPONSIBLE FOR ANY ERRATIC MACHINE BEHAVIOR BEFORE, DURING,	
OR AFTER PROGRAM EXECUTION.	

-------------------------------------------------------------------------------
What it Does?
-------------------------------------------------------------------------------

Whoami 2.0 is based on the idea of the whoami command under unix. There is a similar
command avalible under the Windows NT4 resource kit. Some of its feature may be 
added to future verions of whoami.

WHOAMI 2.0 - Is a command line executible originally designed to display just 
who you are logged on as and system details.
 
WHOAMI 2.0 expands on this theme providing the user with more Local sytem detail
and Network details that ever before.

-------------------------------------------------------------------------------
Sample Outputs for Whoami Version 2 
-------------------------------------------------------------------------------
 
\\AUBHALL\Aubrey Hall
-------------------------------------------------------------------------------
whoami /?   	
-------------------------------------------------------------------------------
 
The syntax of this command is


WHOAMI
      [/?]              Syntax Output
      [/s]              System Info
      [/nc]             Network Configuration
      [/ip]             Network IP
      [/dns]            Network DNS
      [/route]          Network Routing Table
      [/ns]             Network Connections
      [/la]             Local Accounts
      [/n]              Current Network Mappings
      [/r]              Readme
      [/f]              Faq
      [/l]              Licence
      [/all]            All system info

-------------------------------------------------------------------------------
whoami /la   	
-------------------------------------------------------------------------------
 

Aliases for \\AUBHALL

-------------------------------------------------------------------------------
*Administrators
*Backup Operators
*Debugger Users
*Guests
*HelpServicesGroup
*Network Configuration Operators
*Power Users
*Remote Desktop Users
*Replicator
*Users
The command completed successfully.

Force user logoff how long after time expires?:       Never
Minimum password age (days):                          0
Maximum password age (days):                          42
Minimum password length:                              0
Length of password history maintained:                None
Lockout threshold:                                    Never
Lockout duration (minutes):                           30
Lockout observation window (minutes):                 30
Computer role:                                        WORKSTATION
The command completed successfully.

-------------------------------------------------------------------------------
 whoami /s   	
-------------------------------------------------------------------------------
 


Machinename and Username are \\AUBHALL\Aubrey Hall
Domain Name is AUBHALL
Processor is x86 Family 6 Model 8 Stepping 3, GenuineIntel x 1 
Systemdrive is C:
Home path is C:\Documents and Settings\Aubrey Hall
Operating system is Windows_NT
logon server is \\AUBHALL
The Current path is C:\PROGRA~1\hts40\ostore\BIN;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
Path extensions are .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
Library path for OS/2 
Command Prompt is $P$G
Systemroot is C:\WINDOWS

MS-DOS Version 5.00.500


Share name   Resource                        Remark

-------------------------------------------------------------------------------
IPC$                                         Remote IPC                        
C$           C:\                             Default share                     
F$           F:\                             Default share                     
ADMIN$       C:\WINDOWS                      Remote Admin                      
E$           E:\                             Default share                     
E            E:\                             
Samples (F)  F:\                             
SharedDocs   C:\DOCUMENTS AND SETTINGS\ALL USERS\DOCUMENTS
                                             
The command completed successfully.

-------------------------------------------------------------------------------
 whoami /nc   	
-------------------------------------------------------------------------------
 


New connections will be remembered.


Status       Local     Remote                    Network

-------------------------------------------------------------------------------
OK           Y:        \\Slim600\System (D)      Microsoft Windows Network
OK           Z:        \\SLIM600\backup (Z)      Microsoft Windows Network
The command completed successfully.

Server Name            Remark

-------------------------------------------------------------------------------
\\AUBHALL              AUBHALL                                                 
\\SLIM600              SLIM600                                                 
The command completed successfully.


-------------------------------------------------------------------------------
whoami /ip  	
-------------------------------------------------------------------------------
 




Windows IP Configuration



        Host Name . . . . . . . . . . . . : aubhall

        Primary Dns Suffix  . . . . . . . : 

        Node Type . . . . . . . . . . . . : Unknown

        IP Routing Enabled. . . . . . . . : No

        WINS Proxy Enabled. . . . . . . . : No



Ethernet adapter Local Area Connection:



        Connection-specific DNS Suffix  . : 

        Description . . . . . . . . . . . : 3Com EtherLink XL 10/100 PCI TX NIC (3C905B-TX)

        Physical Address. . . . . . . . . : 00-50-04-4B-B1-E7

        Dhcp Enabled. . . . . . . . . . . : Yes

        Autoconfiguration Enabled . . . . : Yes

        Autoconfiguration IP Address. . . : 169.254.61.249

        Subnet Mask . . . . . . . . . . . : 255.255.0.0

        Default Gateway . . . . . . . . . : 



-------------------------------------------------------------------------------
whoami /dns  	
-------------------------------------------------------------------------------
 


Windows IP Configuration



         1.0.0.127.in-addr.arpa

         ----------------------------------------

         Record Name . . . . . : 1.0.0.127.in-addr.arpa.

         Record Type . . . . . : 12

         Time To Live  . . . . : 594119

         Data Length . . . . . : 4

         Section . . . . . . . : Answer

         PTR Record  . . . . . : localhost





         localhost

         ----------------------------------------

         Record Name . . . . . : localhost

         Record Type . . . . . : 1

         Time To Live  . . . . : 594119

         Data Length . . . . . : 4

         Section . . . . . . . : Answer

         A (Host) Record . . . : 127.0.0.1





-------------------------------------------------------------------------------
whoami /route 	
-------------------------------------------------------------------------------
 
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 50 04 4b b1 e7 ...... 3Com EtherLink XL 10/100 PCI TX NIC (3C905B-TX) - Packet Scheduler Miniport
===========================================================================
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
        127.0.0.0        255.0.0.0        127.0.0.1       127.0.0.1	  1
      169.254.0.0      255.255.0.0   169.254.61.249  169.254.61.249	  30
   169.254.61.249  255.255.255.255        127.0.0.1       127.0.0.1	  30
  169.254.255.255  255.255.255.255   169.254.61.249  169.254.61.249	  30
        224.0.0.0        240.0.0.0   169.254.61.249  169.254.61.249	  30
  255.255.255.255  255.255.255.255   169.254.61.249  169.254.61.249	  1
===========================================================================
Persistent Routes:
  None
-------------------------------------------------------------------------------
whoami /ns		
-------------------------------------------------------------------------------


Network Statistics

Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    aubhall:echo           0.0.0.0:0              LISTENING
  TCP    aubhall:discard        0.0.0.0:0              LISTENING
  TCP    aubhall:daytime        0.0.0.0:0              LISTENING
  TCP    aubhall:qotd           0.0.0.0:0              LISTENING
  TCP    aubhall:chargen        0.0.0.0:0              LISTENING
  TCP    aubhall:ftp            0.0.0.0:0              LISTENING
  TCP    aubhall:smtp           0.0.0.0:0              LISTENING
  TCP    aubhall:http           0.0.0.0:0              LISTENING
  TCP    aubhall:epmap          0.0.0.0:0              LISTENING
  TCP    aubhall:https          0.0.0.0:0              LISTENING
  TCP    aubhall:microsoft-ds   0.0.0.0:0              LISTENING
  TCP    aubhall:1025           0.0.0.0:0              LISTENING
  TCP    aubhall:1027           0.0.0.0:0              LISTENING
  TCP    aubhall:1033           0.0.0.0:0              LISTENING
  TCP    aubhall:5000           0.0.0.0:0              LISTENING
  TCP    aubhall:51025          0.0.0.0:0              LISTENING
  TCP    aubhall:netbios-ssn    0.0.0.0:0              LISTENING
  TCP    aubhall:1043           0.0.0.0:0              LISTENING
  TCP    aubhall:1043           169.254.249.106:netbios-ssn  ESTABLISHED
  UDP    aubhall:echo           *:*                    
  UDP    aubhall:discard        *:*                    
  UDP    aubhall:daytime        *:*                    
  UDP    aubhall:qotd           *:*                    
  UDP    aubhall:chargen        *:*                    
  UDP    aubhall:epmap          *:*                    
  UDP    aubhall:snmp           *:*                    
  UDP    aubhall:microsoft-ds   *:*                    
  UDP    aubhall:isakmp         *:*                    
  UDP    aubhall:1028           *:*                    
  UDP    aubhall:1029           *:*                    
  UDP    aubhall:1030           *:*                    
  UDP    aubhall:3456           *:*                    
  UDP    aubhall:ntp            *:*                    
  UDP    aubhall:1900           *:*                    
  UDP    aubhall:ntp            *:*                    
  UDP    aubhall:netbios-ns     *:*                    
  UDP    aubhall:netbios-dgm    *:*                    
  UDP    aubhall:router         *:*                    
  UDP    aubhall:1900           *:*                    
Interface Statistics

                           Received            Sent

Bytes                     175037304         4431152
Unicast packets              123056           66477
Non-unicast packets             567             353
Discards                          0               0
Errors                            0               0
Unknown protocols                 0

IPv4 Statistics

  Packets Received                   = 123591
  Received Header Errors             = 0
  Received Address Errors            = 16
  Datagrams Forwarded                = 0
  Unknown Protocols Received         = 0
  Received Packets Discarded         = 0
  Received Packets Delivered         = 123591
  Output Requests                    = 66814
  Routing Discards                   = 0
  Discarded Output Packets           = 0
  Output Packet No Route             = 0
  Reassembly Required                = 0
  Reassembly Successful              = 0
  Reassembly Failures                = 0
  Datagrams Successfully Fragmented  = 0
  Datagrams Failing Fragmentation    = 0
  Fragments Created                  = 0

ICMPv4 Statistics

                            Received    Sent
  Messages                  3           3         
  Errors                    0           0         
  Destination Unreachable   2           2         
  Time Exceeded             0           0         
  Parameter Problems        0           0         
  Source Quenches           0           0         
  Redirects                 0           0         
  Echos                     0           1         
  Echo Replies              1           0         
  Timestamps                0           0         
  Timestamp Replies         0           0         
  Address Masks             0           0         
  Address Mask Replies      0           0         

TCP Statistics for IPv4

  Active Opens                        = 3
  Passive Opens                       = 16
  Failed Connection Attempts          = 3
  Reset Connections                   = 13
  Current Connections                 = 1
  Segments Received                   = 123023
  Segments Sent                       = 66430
  Segments Retransmitted              = 19

UDP Statistics for IPv4

  Datagrams Received    = 353
  No Ports              = 209
  Receive Errors        = 0
  Datagrams Sent        = 358

-------------------------------------------------------------------------------
 
-------------------------------------------------------------------------------
whoami /n		
Server Name                           \\AUBHALL
Server Comment                        AUBHALL

Software version                      Windows 2002
Server is active on                   
	NetbiosSmb (000000000000)
	NetBT_Tcpip_{C3D688C7-25DF-4094-902A-B92693F32950} (0050044bb1e7)


Server hidden                         No
Maximum Logged On Users               10
Maximum open files per session        16384

Idle session time (min)               15
The command completed successfully.

Computer name                        \\AUBHALL
Full Computer name                   aubhall
User name                            Aubrey Hall

Workstation active on                
	NetbiosSmb (000000000000)
	NetBT_Tcpip_{C3D688C7-25DF-4094-902A-B92693F32950} (0050044BB1E7)

Software version                     Windows 2002

Workstation domain                   MSHOME
Workstation Domain DNS Name          (null)
Logon domain                         AUBHALL

COM Open Timeout (sec)               0
COM Send Count (byte)                16
COM Send Timeout (msec)              250
The command completed successfully.

-------------------------------------------------------------------------------
whoami /l 		
-------------------------------------------------------------------------------
 
[2J                    Ŀ 
 Ľ   
                                                                           
                                     
   ۲   ۲   ۲  ۲  ۲ ۲     ۲    ۲   ۲       
    ۲ ۲ ۲   ۲ ۲      ۲     ۲۲ ۲۲   
     ۲  ۲    ۲  ۲ ۲     ۲ ۲ ۲   
                      ۲            
                                                                           
    
                     
                          (c) 2002 Aubrey Hall ޳                      
                          
                                                            
                  Windows NT   (c) Microsoft Corporation    
                  Windows 2000 (c) Microsoft Corporation    
                  Windows XP   (c) Microsoft Corporation    
               _____________________________________________
-------------------------------------------------------------------------------
Changelog 

-------------------------------------------------------------------------------

0.5  - Created test file 
0.7  - Tested completed program file 
1.0  - Final completed 02/11/2002 
1.0b - Uploaded to http://www.simtel.com  
1.0c - 200+ downloads in the 1st 3 months better than expected  
1.0c - Http://www.nonags.com link added, gets 5 star award  
1.0d - Deside to create version 2  
1.1a - Created basic install and uninstall 
1.1b - Created Faq 
1.2a - Added switches support 
1.2b - Added OS Check 
1.3a - Combined install and uninstall into Install.com  
1.3a - Updated Readme and FAQ 
1.3c - Added Pad files to Archieve 
1.4  - Added Freedos choice.com and errorcheck for file 
1.4b - Added cdrom.com which reports cdrom drive letter 
1.4c - Tested process timer element, further work required  
1.5  - Changed readme.txt to whoami2.txt and faq.txt to thefaq.txt 
1.5b - Updated install.com which filechecking  
1.6  - Optimisiation begins  
1.6a - Removed choice.com as menu   
1.6b - Process timer code removed   
1.7  - Removed cdrom.com, needs more testing 
1.8  - Defining what is working and what is not
1.9  - Final Build preparation  
1.9a - Final code agreed and compiled  
1.9b - Final code tested  
1.9c - Final whoami2.txt compiled  
1.9d - Final faq.txt writen  
1.9e - Version 1 added for those who still require it  
2.0  - Final 
 
What next? 
1 - Test cdrom.com and add to next build 
2 - Research implementing all the feature of the nt resource 
    kit whoami. 
3 - All suggestions to author at aubhall@yahoo.com

Support me by listening 
 
http://www.mp3.com/djjademan 
http://www.mp3.com/technophobiac 
 
Enjoying Humour 	
 
http://jokeie.cjb.net - Ultimate Joke Resource 
 
Checking out my other projects 
 
http://whoamint.dk3.com 
