Disable-IisSecurityAuthentication

Disables anonymous or basic authentication for all or part of a website.

Syntax

Disable-IisSecurityAuthentication -SiteName <String> [-Path <String>] -Anonymous [-WhatIf] [-Confirm] [<CommonParameters>]
Disable-IisSecurityAuthentication -SiteName <String> [-Path <String>] -Basic [-WhatIf] [-Confirm] [<CommonParameters>]
Disable-IisSecurityAuthentication -SiteName <String> [-Path <String>] -Windows [-WhatIf] [-Confirm] [<CommonParameters>]

Description

By default, disables an authentication type for an entire website. You can disable an authentication type at a specific path under a website by passing the virtual path (not the physical path) to that directory as the value of the Path parameter.

Related Commands

Parameters

Name Type Description Required? Pipeline Input Default Value
SiteName String The site where anonymous authentication should be set. true false
Path String The optional path where anonymous authentication should be set. false false
Anonymous SwitchParameter Enable anonymouse authentication. true false
Basic SwitchParameter Enable basic authentication. true false
Windows SwitchParameter Enable Windows authentication. true false
WhatIf SwitchParameter false false
Confirm SwitchParameter false false
CommonParameters This cmdlet supports common parameters. For more information type
Get-Help about_CommonParameters.

EXAMPLE 1

Disable-IisSecurityAuthentication -SiteName Peanuts -Anonymous

Turns off anonymous authentication for the Peanuts website.

EXAMPLE 2

Disable-IisSecurityAuthentication -SiteName Peanuts Snoopy/DogHouse -Basic

Turns off basic authentication for the Snoopy/DogHouse directory under the Peanuts website.