My co-workers and I are trying to right a powerShell script to enable the Virtual Directories feature under FTP Directory Browsing for an FTP site that we've created. The concept is obviously to automate our server setup procedure. I have been looking for quite sometime on how to write the above mentioned script; however, can't really seem to find a way to enable that flag. I stumbled upon the appcmd exe and thought that might be a way to do it; however, I can't seem to figure that out either. I thought the following would solve my issue:
c:\Windows\system32\inetsrv\appcmd.exe set config "ftp" /section:directoryBrowse /enabled:true
That enables directory browsing on a virtual directory called test, which isn't what I need...