Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What is my username
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01064384
Message ID:
01064402
Views:
31
Borislav would this help?
strDomain = "STG"  && Your own domain name
Clear
On Error 
Public PrimDomainContr
Create Cursor names (username c(30),fullname c(80),description c(80),Class c(50),accdisable l,;
acclocked l,profile c(30),loginscript c(50),Homedir c(30))
PrimDomainContr = Getobject("WinNT://" + strDomain)
For Each User In PrimDomainContr
    If User.Class = 'User'
        Insert Into names (username,fullname,description,Class,accdisable,acclocked,profile,;
        loginscript,Homedir) Values (User.Name,user.fullname,User.description,User.Class,User.AccountDisabled,;
        User.IsAccountLocked,User.Profile,User.loginscript,User.Homedirectory)
    Endif
Next
Browse Norm
>>Hi,
>>Sorry misunderstood what you where trying to do.
>>WMI and pull the session details out, difficult.
>>Easier way paste ID details to paste buffer on TS, and retrieve from paste buffer on local machine.
>>
>>>Thanks Neil,
>>>I know that when i logged in TS and issue SYS(0) or ID() I'll get the UserName I used to login to the server, but how to get this UserName from my local machine? Login to TS. Switch tasks and return to your local desktop. Is there a way to get the username from TS?
>
>How to do that?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform