General information
Category:
COM/DCOM and OLE Automation
I believe that the question is how to get the information from the local machine, not from the TS session.
>Hi,
>SYS(0) issued from an app running on the TS WILL return the username of the TS session not the local machine.
>i.e. I am currently logged in locally as nmcdonald, the TS session I am running offsite I am logged in as MBSUSER, SYS(0) returns MBSUSER.
>
>>SYS(0) will return the username on the local machine, not the terminal server.
>>
>>>Hi,
>>>Try SYS(0) and parse the user name, it comes back MACHINE_NAME#USERNAME
>>>
>>>
>>>>>Hi,
>>>>>From DOS Command issue a "ECHO %USERDOMAIN%\%USERNAME%".
>>>>> -or-
>>>>>Issue a WHOAMI.exe gives the same. It comes in the Windows Resource Kit.
>>>>>
>>>>>Is there a way to find my username on remote computer when I use remotedesktop or Terminal Server?
>>>>>>I try to read WMI classes but I am lost :o)
>>>>>>TIA
>>>>
>>>>Thanks Neil, but I want to get this programaticly :o)
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only