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.
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.
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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.