Purpose
PowerShell script that will allow you to verify if a SPN (Service Principal Name) exists in the domain that allows you to generate a TGS (Ticket Granting Service) ticket. This script searches Active Directory for registered SPNs and displays those that meet the criteria.
Steps
PowerShell script that will allow you to verify if a SPN (Service Principal Name) exists in the domain that allows you to generate a TGS (Ticket Granting Service) ticket. This script searches Active Directory for registered SPNs and displays those that meet the criteria.
Steps
# Importar el módulo de
Import-Module ActiveDirectory
# Definir el SPN que deseas
$spn = "HTTP/*"
# Buscar cuentas de servicio
$cuentasConSPN = Get-ADObject
# Verificar si se encontraron
if ($cuentasConSPN) {
Write-Output "Se
$cuentasConSPN | Select-
} else {
Write-Output "No se
}
By GoN | Published: Jun 2025 | Last Updated:
No hay comentarios:
Publicar un comentario