Hey,
Maybe it's because backslash () is the escape caracter, thus when you write "\ xxxxx" the string is interpreted as '\ xxxxxx'.
In fact th first backslash introduces an escape sequence and the 2nd backslash is THE caracter to be escaped.
So all you have to do is to add another backslash:
system("psexec \\\\10.12.0.44 -u perft -p z44kjl ipconfig") ;
To be fully convinced, try
echo "psexec \\10.12.0.44 -u perft -p z44kjl ipconfig" ;
//and then:
echo "psexec \\\\10.12.0.44 -u perft -p z44kjl ipconfig";
you'll see exactly what is really being executed by system().