diff --git a/iis/configuration/system.webServer/security/access.md b/iis/configuration/system.webServer/security/access.md index 50e21266a..7980743b8 100644 --- a/iis/configuration/system.webServer/security/access.md +++ b/iis/configuration/system.webServer/security/access.md @@ -116,3 +116,10 @@ The following examples make SSL required to access a Web site named Contoso. ### VBScript [!code-vb[Main](access/samples/sample6.vb)] + +### PowerShell +> [!NOTE] +> The `Set-WebConfigurationProperty` cmdlet is part of the [WebAdministration PowerShell module](https://docs.microsoft.com/en-us/powershell/module/webadministration/?view=windowsserver2022-ps). + +[!code-powershell[Main](access/samples/sample7.ps1)] + diff --git a/iis/configuration/system.webServer/validation/samples/sample7.ps1 b/iis/configuration/system.webServer/validation/samples/sample7.ps1 new file mode 100644 index 000000000..261725802 --- /dev/null +++ b/iis/configuration/system.webServer/validation/samples/sample7.ps1 @@ -0,0 +1 @@ +Set-WebConfigurationProperty //system.webServer/security/access -Value None