Get remote user name
Keywords: Get remote user name wntUserGet w95UserGet
Question:
Is there a function to get the current username of the user on a remote pc. i use this script but theres an error:
AddExtender("WWW9534I.DLL") username=w95GetUser(\\gm-edp1) Message("Current User is",username)it returns my username not their username
Answer:
If you have admin access to the machine and can do a RegConnect to it,you can query the remote registry for...is the name of the last interactively logged on user.
- NT
- HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon [DefaultUserName]
- Win9x
- HKLM\Network\logon[Username]
Article ID: W14638Filename: Get remote user name.txt