

SSL policy and NTFS permissions to the FTP root folderĬhange the SSL policy from Require SSL to Allow SSL connections. $Param = Filter = "/system.ftpServer/security/authorization" Value = accessType = "Allow" roles = "$FTPUserGroupName" permissions = 1 } PSPath = 'IIS:\' Location = $FTPSiteName } Add-WebConfiguration can also check these settings under IIS Manager > FTP Site > FTP Authorization Rules. # Enable basic authentication on the FTP site $FTPSitePath = "IIS:\Sites\$FTPSiteName" $BasicAuth = '.enabled' Set-ItemProperty -Path $FTPSitePath -Name $BasicAuth -Value $True # Add an authorization read rule for FTP Users.

Now enable basic authentication on the FTP site and authorize the Windows group that contains the FTP user so it can access the FTP site.
SETUP FTP SERVER WINDOWS 10 HOW TO
How to Authenticate FTP users to access FTP server data Then we will create a new local FTP user with a username and password: # Create an FTP user $FTPUserName = "FTPUser" $FTPPassword = ' ' $CreateUserFTPUser = $ADSI.Create( "User", "$FTPUserName") $CreateUserFTPUser.SetInfo() $CreateUserFTPUser.SetPassword( "$FTPPassword") $CreateUserFTPUser.SetInfo()Īdd the FTP user to the Windows group: # Add an FTP user to the group FTP Users $UserAccount = New-Object ( "$FTPUserName") $SID = $UserAccount.Translate() $Group = "WinNT://$env:ComputerName/$FTPUserGroupName,Group" $User = "WinNT://$SID" $Group.Add($User.Path) # Create the FTP site $FTPSiteName = 'Default FTP Site' $FTPRootDir = 'D:\FTPRoot' $FTPPort = 21 New-WebFtpSite -Name $FTPSiteName -Port $FTPPort -PhysicalPath $FTPRootDirĪfter running the cmdlet, you’ll see the FTP site and bindings in IIS Manager.Īfter creating a new FTP site, you can create a Windows user or group through which you can control the access to the FTP server.įirst, create the Windows local group: # Create the local Windows group $FTPUserGroupName = "FTP Users" $ADSI = "WinNT://$env:ComputerName" $FTPUserGroup = $ADSI.Create( "Group", "$FTPUserGroupName") $FTPUserGroup.SetInfo() $FTPUserGroup.Description = "Members of this group can connect through FTP" $FTPUserGroup.SetInfo() Note:We are choosing port 21, which is the default FTP port, but you can also specify any custom port for your FTP site. You can create a new FTP site using the New-WebFtpSite cmdlet by providing an FTP site name, root folder for your FTP site, and port number. Recommended Article: Tutorial Configure MongoDB Remote Access on Ubuntu 20.04 How to Configuring the site name, port, and root folder
