Vulnerability & Exploit Database

Back to search

Windows Manage Add User to the Domain and/or to a Domain Group

This module adds a user to the Domain and/or to a Domain group. It will check if sufficient privileges are present for certain actions and run getprivs for system. If you elevated privs to system, the SeAssignPrimaryTokenPrivilege will not be assigned. You need to migrate to a process that is running as system. If you don't have privs, this script exits.

Free Metasploit Download

Get your copy of the world's leading penetration testing tool

 Download Now

Module Name



  • Joshua Abraham <jabra [at]>


  • windows



Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use post/windows/manage/add_user_domain msf post(add_user_domain) > sessions ...sessions... msf post(add_user_domain) > set SESSION <session-id> msf post(add_user_domain) > show options and set options... msf post(add_user_domain) > run