Last Updated: February 25, 2016
·
781
· 19nine78

Setting wwroot permissions on IIS

When relocating the wwwroot on IIS to a different drive, robocopy can be used as an easy way of setting the permissions correctly on the new folder.

robocopy C:\inetpub\wwroot D:\inetpub\wwroot /E /COPY:SOU /xo /xn /xc /xx

the /COPY:SOU switch will copy everything except the data to the new location.

ref:http://ss64.com/nt/robocopy.html