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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by PeterFisk2

  1. PeterFisk2

    Finding the Name of a Remote Computer from the User Name

    Spelling error. I meant: If you have many servers, then you may get many equal answers. If the user is logged in, but not attached to any servers, you won't find him. And I forgot to say, that each NetSessionEnum returns an array of results, so you must go through each result. (If the user is...
  2. PeterFisk2

    Finding the Name of a Remote Computer from the User Name

    I know how. In a NT4.0-domain, do the following: 1. Use NetGetDCName(..,domainname,...) to find the PDC. 2. Use NetServerEnum() to find all the servers in your domain. (Not workstations). 3. For each server use NetSessionEnum(server,NULL,username,10,&buffer,...) If it returns NERR_Success...

Part and Inventory Search

Back
Top