Advertisement
mgunnin

Windows - FTP Install

Jan 18th, 2012
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. cmd /c "pkgmgr /iu:IIS-FTPServer;IIS-FTPSvc;IIS-FTPExtensibility
  2.  
  3. cd %windir%\system32\inetsrv
  4.  
  5. set ftproot=%systemdrive%\inetpub\ftproot
  6.  
  7. c:\windows\system32\inetsrv\appcmd.exe add site /name:"Default ftp site" /bindings:ftp://*:21 /physicalpath:"%ftproot%"
  8.  
  9. c:\windows\system32\inetsrv\appcmd.exe set site /site.name:"Default ftp site" /ftpServer.security.ssl.controlChannelPolicy:SslAllow
  10.  
  11. c:\windows\system32\inetsrv\appcmd.exe set site /site.name:"Default ftp site" /ftpServer.security.ssl.dataChannelPolicy:SslAllow
  12.  
  13. c:\windows\system32\inetsrv\appcmd.exe set site /site.name:"Default ftp site" /ftpServer.security.authentication.basicAuthentication.enabled:true
  14.  
  15. c:\windows\system32\inetsrv\appcmd.exe set config "Default ftp site" /section:system.ftpserver/security/authorization /+[accessType='Allow',permissions='Read,Write',roles='administrators',users=''] /commit:apphost
  16.  
  17. c:\windows\system32\inetsrv\appcmd.exe set config -section:system.ftpServer/firewallSupport /lowDataChannelPort:"5000" /commit:apphost
  18.  
  19. c:\windows\system32\inetsrv\appcmd.exe set config -section:system.ftpServer/firewallSupport /highDataChannelPort:"5050" /commit:apphost
  20.  
  21. netsh advfirewall firewall add rule name="FTP for IIS7" service=ftpsvc action=allow protocol=TCP dir=in
  22.  
  23. netsh advfirewall set global StatefulFTP disable
  24.  
  25. net stop ftpsvc
  26.  
  27. net start ftpsvc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement