23 lines
603 B
PowerShell
23 lines
603 B
PowerShell
function Read-WebTierCertificates {
|
|
<#
|
|
.SYNOPSIS
|
|
Reads Web Tier Certificates.
|
|
#>
|
|
|
|
[CmdletBinding()]
|
|
Param(
|
|
[string]$baseFolder,
|
|
[Hashtable[]]$certificatesTable,
|
|
[string[]]$usersWhoNeedRights
|
|
)
|
|
|
|
$logLead = (Get-LogLeadName);
|
|
|
|
[string[]]$usersWhoNeedRights = $null
|
|
$usersWhoNeedRights += "IIS_IUSRS"
|
|
|
|
Write-Verbose ("$logLead : Users who need rights read as {0}" -f ($usersWhoNeedRights -join ","))
|
|
Read-Certificates $baseFolder $certificatesTable $usersWhoNeedRights
|
|
}
|
|
|
|
Set-Alias -name Load-WebTierCertificates -value Read-WebTierCertificates; |