Hi Guys,

Thanks for the swift response, your help is greatly appreciated :-)

I tried using the following code as suggested:-

code:
 $result=WriteProfileString($IniFile,$Target,'','') 

However, this just returns a blank file? All I want is a list of machines. I want the name of the machine recorded to a file on my server when that machine is logged in.

Is WriteProfileString the right way to do this?

Kind Regards, Greg