shell-file-nameの値は?
もしcmd.exeで上手く行かないときはntemacsに付属のcmdproxy.exeというのを使ういけるかもしれない
shell-command-to-string使うよりreg.exeをcall-process使って呼びす方がいいのかもしれないが