On this example, set the default root to. Input any name for, specify physical Path for. Next, Select the and right click it, then Open. Successfully processed 1 files Failed processing 0 files Processed file: C:\inetpub\ftproot\LocalUser\Serverworld PS C:\Users\Administrator> icacls "C:\inetpub\ftproot\LocalUser\Serverworld" /grant "Serverworld:(OI)(CI)(F)" PS C:\Users\Administrator> mkdir C:\inetpub\ftproot\LocalUser\Serverworld # naming rule ⇒ (example below is for user) PS C:\Users\Administrator> Restart-WebItem -PSPath 'IIS:\Sites\FTPRoot' # create folders for each local user that each folder name is the same with thier username PS C:\Users\Administrator> mkdir C:\inetpub\ftproot\LocalUser PS C:\Users\Administrator> Set-ItemProperty "IIS:\Sites\FTPRoot" -Name 4Address -Value "10.0.0.101" # create the folder under the Path you set as physical path of FTP site (it is needed on this setting) PS C:\Users\Administrator> Set-ItemProperty "IIS:\Sites\FTPRoot" -Name -Value "IsolateRootDirectoryOnly" # set external IP address (the one client computers can connect) PS C:\Users\Administrator> Add-WebConfiguration "/system.ftpServer/security/authorization" -Location FTPRoot -PSPath IIS:\ -Value # set user isolation PS C:\Users\Administrator> Set-ItemProperty "IIS:\Sites\FTPRoot" -Name .enabled -Value $true # set read and write authority to all local users PS C:\Users\Administrator> Set-ItemProperty "IIS:\Sites\FTPRoot" -Name -Value "SslAllow" # set basic authentication PS C:\Users\Administrator> Set-ItemProperty "IIS:\Sites\FTPRoot" -Name -Value "SslAllow" PS C:\Users\Administrator> Set-ItemProperty "IIS:\Sites\FTPRoot" -Name physicalPath -Value 'C:\inetpub\ftproot' # set SSL/TLS setting (example below is allowing No SSL) # example below, create a folder under the that is created by default and set it # set physical folder that is used for FTP site ![]() PS C:\Users\Administrator> New-WebFtpSite -Name "FTPRoot" -IPAddress "*" -Port 21 Run PowerShell with Admin Privilege and Configure FTP Service.Ĭopyright (C) Microsoft Corporation. If thete is no file share requirements among users, this setting is useful. For this setting, each user can access only to their own named folder.
0 Comments
Leave a Reply. |