PDA

Click to See Complete Forum and Search --> : get remote pc name


prophet2882
Apr 14th, 2010, 01:34 AM
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.

chris128
Apr 23rd, 2010, 03:47 PM
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).