Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmd /c "pkgmgr /iu:IIS-FTPServer;IIS-FTPSvc;IIS-FTPExtensibility
- cd %windir%\system32\inetsrv
- set ftproot=%systemdrive%\inetpub\ftproot
- c:\windows\system32\inetsrv\appcmd.exe add site /name:"Default ftp site" /bindings:ftp://*:21 /physicalpath:"%ftproot%"
- c:\windows\system32\inetsrv\appcmd.exe set site /site.name:"Default ftp site" /ftpServer.security.ssl.controlChannelPolicy:SslAllow
- c:\windows\system32\inetsrv\appcmd.exe set site /site.name:"Default ftp site" /ftpServer.security.ssl.dataChannelPolicy:SslAllow
- c:\windows\system32\inetsrv\appcmd.exe set site /site.name:"Default ftp site" /ftpServer.security.authentication.basicAuthentication.enabled:true
- 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
- c:\windows\system32\inetsrv\appcmd.exe set config -section:system.ftpServer/firewallSupport /lowDataChannelPort:"5000" /commit:apphost
- c:\windows\system32\inetsrv\appcmd.exe set config -section:system.ftpServer/firewallSupport /highDataChannelPort:"5050" /commit:apphost
- netsh advfirewall firewall add rule name="FTP for IIS7" service=ftpsvc action=allow protocol=TCP dir=in
- netsh advfirewall set global StatefulFTP disable
- net stop ftpsvc
- net start ftpsvc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement