You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated the Get-KeyfactorIISBoundCertificates.ps1 script to include support for JEA (Just Enough Administration) environments. Added a new documentation file for setting up an SSH development environment.
if (-not$principal.IsInRole([Security.Principal.WindowsBuiltInRole]::Administrator)) {
13
+
Write-Information`
14
+
-Message "Get-KeyfactorIISBoundCertificates requires an elevated PowerShell session (Run as Administrator) or a JEA endpoint configured with administrative privileges."`
-Message "Failed to create the IIS ServerManager object. IIS may not be installed or the Microsoft.Web.Administration assembly could not be loaded.`n$($_.Exception.Message)"`
• The current user does not have permission to enumerate IIS configuration.
50
+
• IIS contains no configured websites.
51
+
• The IIS configuration is unavailable.
52
+
"@
53
+
}
54
+
55
+
return
56
+
}
57
+
}
58
+
catch {
59
+
Write-Error`
60
+
-Message "Access denied while reading IIS configuration. Local Administrator privileges or an appropriately configured JEA endpoint are required.`n$($_.Exception.Message)"`
61
+
-ErrorAction Stop
11
62
}
12
63
13
-
$websites=$serverManager.Sites
14
64
Write-Information"There were $($websites.Count) websites found."
15
65
16
66
foreach ($sitein$websites) {
67
+
17
68
$siteName=$site.Name
18
69
$siteBoundCertificateCount=0
19
70
20
71
foreach ($bindingin$site.Bindings) {
72
+
21
73
if ($binding.Protocol-eq'https'-and$binding.CertificateHash) {
0 commit comments