Skip to content

Instantly share code, notes, and snippets.

# Source: https://stackoverflow.com/a/43317244
$path = ".\key.pem"
# Reset to remove explict permissions
icacls.exe $path /reset
# Give current user explicit read-permission
icacls.exe $path /GRANT:R "$($env:USERNAME):(R)"
# Disable inheritance and remove inherited permissions
icacls.exe $path /inheritance:r
@ExeqZ
ExeqZ / gist:b8bc87b3c3761a22e495b66f78eaf4ed
Created May 27, 2022 13:13
Clear Computer Kerberos tickets
klist -li 0x3e7 purge | Out-Null
curl -v http://portquiz.net:21
$mycert=New-SelfSignedCertificate -DnsName ($env:computername + '.' + (Get-ADDomain).DNSRoot) -CertStoreLocation cert:/LocalMachine/My