Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for whoisit.bat

(view source code of whoisit.bat as plain text)

  1. @ECHO OFF
  2. IF "%OS%"=="Windows_NT" (DSQUERY.EXE User -samid %1 2>&1 | DSGET.EXE User -samid -display 2>&1 | FIND.EXE /I "%~1" && GOTO:EOF)
  3. :Syntax
  4. CLS
  5. ECHO.
  6. ECHO WhoIsIt.bat,  Version 1.00 for Windows 2000 / XP / Server 2003
  7. ECHO Display the full (display) name of the specified domain user ID
  8. ECHO.
  9. ECHO Usage:  WHOISIT  user_id
  10. ECHO.
  11. ECHO Where:  user_id  is the (SAM) user ID whose full name you want to display
  12. ECHO.
  13. ECHO Notes:  Will only work in an Active Directory domain or forest.
  14. ECHO         Requires DSQUERY and DSGET, native tools in Windows Server 2003.
  15. ECHO.
  16. ECHO Written by Rob van der Woude
  17. ECHO http://www.robvanderwoude.com
  18.  

page last modified: 2024-04-16; loaded in 0.0121 seconds