Last active
May 25, 2021 19:55
-
-
Save dgosbell/166c0f63da9bae80ad25 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## the following lists all the constrained delegation settings for a given AD user | |
## adapted from http://www.harbar.net/archive/2015/06/02/Configuring-Kerberos-Constrained-Delegation-with-Protocol-Transition-and-the-Claims.aspx | |
## to get ActiveDirectory Powershell module on Win 10 use the following | |
## https://gallery.technet.microsoft.com/Install-the-Active-fd32e541 | |
Param( | |
[Parameter(Mandatory=$true, Position=0, HelpMessage="AD Account Name")] | |
[string]$account | |
) | |
import-module ActiveDirectory | |
$u = get-aduser $account -properties "msDS-AllowedToDelegateTo", ServicePrincipalNames | |
"`n======= SPNs =======" | |
$u.ServicePrincipalNames | sort | |
"`n======= Constrained Delegation =======" | |
$u."msDS-AllowedToDelegateTo" | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you Darren.