The answer to the first question - what permissions must I set? - is the same as it is with Apache and Unix. As for the second question (how), that is another story.
I'm no expert on IIS, but from what I've read in the forums and elsewhere on the WWW, what you need to do is right click on moodledata in a folder window of d:\, and select properties. Then you need to select the tab that deals with sharing or security or such; I don't recall the exact name and I don't have that tab on my PC because I don't have a network. But the main thing is you need to be able to set permissions (or rights) like read, write, and execute. If you can't do that in the tab you're in, try another.
Now IIS needs to have full rights to moodledata, so you need to grant all three of the rights I've named to IWAM_computername (I think that's the user that would apply). Also, wiseguy hackers out there in internetland with browsers need to be excluded from any access to moodledata, so grant no rights to IUSR_computername.
Check with the IIS help screens and docs in case I got some detail wrong, but I think that's the basic idea. If that doesn't work, it might be necessary to go into IIS Manager to set the directory rights.
There are some documents on the web on IIS that have been mentioned in these forums. Unfortunately, none of them seem to have much to say about moodledata permissions. Here is a partial list:http://moodlewindows.k-net.co.zahttp://www.peterguy.com/php/install_IIS6.htmlhttp://technet.microsoft.com/en-us/library/cc778778.aspxhttp://excellence.qia.org.uk/page.aspx?o=ferl.aclearn.resource.id8811
(this one suggests using your ftp
program to set file and directory permissions)http://www.phplivesupport.com/documentation/viewarticle.php?aid=78&pid=8http://www.filedropper.com/installingmoodleonwindowsserver2003-updated
(click the big Download
This File button)
But most of all, this Moodle forum discussion:http://moodle.org/mod/forum/discuss.php?d=77868
, especially the posts by RH, which is where I learned about IUSR and IWAM