Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WHOAMI for Win9x?

Status
Not open for further replies.

prpnovaes

Technical User
Nov 29, 2001
36
BR
Somebody knows if exists, for windows9x, some program like
WHOAMI.EXE. I need to know (in batch mode) who is the user (nt user login) that is logged on the domain using a specific station.

Thanks a lot for your reply.
 
if your using NT 4.0, there is the Domain Server Manager similar to Netwatcher program of Win98SE. You have to install the service pack to be able to have this feature.

let me know if this helped...

torturedmind [trooper]
 
Excuse-me torturemind, but i think that i wasn´t clear in my question. I need to know in a win9x workstation (logged on in a NT4.0 Domain), using a batch file job, who is the user currently logged on. In NTworkstation stations i can to know using a environment variable %username% in a batch file job, but in Win9x stations i can´t.

I know that for w2000 stations exists the whoami.exe program that can to produce the desired effects. But it can't to run in win9x stations.

So i need to know if exist any other environment variables in win9x that can give-me this, or any other program like whoami.

Thanks a lot
 
We are using a progam called PUTINENV to let Windows 95/98 Machine identify there login name to a Windows NT Domain. This program was here when I started working here and am unsure of its origins.
 
In order to find the information you need, get it from the registry.
Put the following tree lines in a whoami.bat file, place it on the C:\ and run it. Now you have the computername in a textfile.

line 1:
REGEDIT /E C:\WHOAMI.REG
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ComputerName\ComputerName
line 2:
type c:\whoami.reg | find "=" >c:\whoami.txt
line 3:
del c:\whoami.reg

(The reason for writeting the line no. is due to undetermindet linebreaks and line 1 IS long!)
good luck.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top