search
Categories
Sponsors
VirtualMetric Hyper-V Monitoring, Hyper-V Reporting
Archive
Blogroll

Badges
MCSE
Community

Cozumpark Bilisim Portali
Setting FTP Server Authorization with Powershell on IIS7.5
Posted in Hosting & IIS7, Windows Powershell, Windows Server | 4 Comments | 11,399 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"

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.


Comments (4)

Brian Mondoux

April 18th, 2010
00:36:43

How would you reverse FTP server authorization for a specific user that was added using your example:

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”


voovoo

January 31st, 2011
13:07:09

Yes I too would like to know how to reverse that command!


admin

February 12th, 2011
01:25:34

Hello,

What you mean with reverse? If you mean clearing that configuration, I can write the function.

Sorry for late answer. I missed this due to I’m busy.

Yusuf.


Brian Mondoux

October 6th, 2011
19:08:25

Yes, I mean clearing the configuration in a script. Right now I have to manually remove it.



Leave a Reply