How to escape quote marks in Exec Command in MSBuild
Use " to encode the double quotes that you want net to see inside the Command attribute value : <Exec Command=”net use x: "\\ofmapoly703\c$\program files\ar\iap" /user:$(UserID) $(Password)” WorkingDirectory=”c:\” ContinueOnError=”false” />