Posted in
Hosting & IIS7,
Windows Powershell,
Windows Server |
4 Comments | 11,484 views | 27/02/2010 16:27
Last post, We created a new ftp site on IIS7.5 with Powershell.
Now we set security settings of FTP site with Powershell.
Import-Module WebAdministration
Add-WebConfiguration -Filter /System.FtpServer/Security/Authorization -Value (@{AccessType="Allow"; Users="$FTPUsername"; Permissions="Read, Write"}) -PSPath IIS: -Location "Default FTP Site/$FTPUserDir/$FTPUsername" |
Import-Module WebAdministration
Add-WebConfiguration -Filter /System.FtpServer/Security/Authorization -Value (@{AccessType="Allow"; Users="$FTPUsername"; Permissions="Read, Write"}) -PSPath IIS: -Location "Default FTP Site/$FTPUserDir/$FTPUsername"
My purpose is showing you how to use Powershell to do your works easy. Not explaining IIS7 FTP settings. If you have questions about Security settings of IIS7.5, please mail me. I’m trying to reply all user mails.