Skip to content

Instantly share code, notes, and snippets.

@d875167
d875167 / UefiCertificatesUpdate.ps1
Created April 26, 2026 04:04 — forked from MarcelMeurer/UefiCertificatesUpdate.ps1
Verify and install the UEFI Boot Certificates if needed
$regPath = "HKLM:\SYSTEM\CurrentControlSet\Control\SecureBoot\Servicing"
$valueName = "UEFICA2023Status"
try {
$value = (Get-ItemProperty -Path $regPath -Name $valueName -ErrorAction Stop).$valueName
Write-Output "The value of the UEFICA2023 state is: $value"
} catch {
Write-Output "Failed to read registry value"
exit 1
}
@d875167
d875167 / Renew-KerberosTicket.ps1
Created January 23, 2026 07:39 — forked from Relianco/Renew-KerberosTicket.ps1
Renew Kerberos Ticket Before Expiry
$RenewalTime = 8
try {
# Run klist to retrieve the Kerberos ticket information
$klistOutput = & klist
# Array to store ticket details
$ticketDetails = @()
# Extract the ticket details from the klist output