Results 1 to 2 of 2

Thread: get remote pc name

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2010
    Posts
    1

    get remote pc name

    Hi there,

    i whant to create a litte program that does the following,
    if you give the computer name that it will reslove to the FQDM and that i get the loggedin username

    i have looked on the internet but no where i can find good sample code that does the job

    can any one help me with this.

  2. #2
    Pro Grammar chris128's Avatar
    Join Date
    Jun 2007
    Location
    England
    Posts
    7,604

    Re: get remote pc name

    so you dont actually want to get the remote PC name at all do you... you want the user to already know the remote PC name and then you want to find out the logged on user.
    You can use WMI to do both of the things that you mentioned but personally I am not keen on WMI as it seems to be a bit unreliable (and slow).
    My free .NET Windows API library (Version 2.2 Released 12/06/2011)

    Blog: cjwdev.wordpress.com
    Web: www.cjwdev.co.uk


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width