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

Badges
MCSE
Community

Cozumpark Bilisim Portali
Changing IIS7 Basic Settings User Authentication with Powershell
Posted in Hosting & IIS7, Windows Powershell | 1 Comment | 5,459 views | 16/12/2010 22:00

Powershell function to setting basic authentication for websites in IIS7.

1
2
3
4
5
6
7
Function Set-UserPermissions
{
Param ($Description, $Username, $Password)
 
	Set-ItemProperty IIS:\Sites\$Description -Name Username -Value "$Username"
	Set-ItemProperty IIS:\Sites\$Description -Name Password -Value "$Password"
}

Description is the name of website in IIS7.


Comments (1)

Derek

June 28th, 2013
00:02:12

How would you do this but set the authentication to be pass-through authentication?



Leave a Reply