eriqjaffe
thanks for you help. I am alittle confused.
I am going to interpret your code to the right let me know
if I am on right track.



 Code:
for each $Element in $PClist
    $array = ReadFile("fsp.ini")     /* read entire ini file into array
    $array[2] = "pcAlias="+$Element /*set value array(2) to string value
    $ = WriteFile("\\"+$Element+"\C$\fsp.ini",$array)/* write array back to file?
next

but how does this code know where to remove and replace the string
it has to remove and replace the exact line of code?????
that last line seems to copy the fsp.ini to a pc via UNC path
sure but it write the entire array back to file? how does it remove 
and replace the exact line string pcAlias=previouspcname with pcAlias=newpcname????



_________________________
Robert
A+, CCNA, MCP
Network Admin
Credit Union Wisconsin