Script Name: Domain Admin Account - Create
Script Description: This script utilizes some basic command line parameters to create an account and move them into the appropriate group, in this case the domain admin group. You can add additionally accounts and groups by following the two examples. Note that the password is imbedded in the script in plane text however only authorized Kaseya Administrators should have access to the view the script. Administrative access can be further restricted using administrative roles and/or by sharing the script and setting the “Other administrators may use but may not view or edit” option. When the script is delivered, the communication will be using the Kaseya 256 bit rolling encryption.

Enjoy


IF True
THEN
Execute Shell Command
Parameter 1 : net user /add domainadmin Password /domain
Parameter 2 : 1
OS Type : 0
Execute Shell Command
Parameter 1 : net group "domain admins" domainadmin /add /domain
Parameter 2 : 1
OS Type : 0
ELSE




Legacy Forum Name: Create domain admin account,
Legacy Posted By Username: Charles.spencer@kaseya.com