Manual:CreateAndPromote.php

Details
createAndPromote.php is a maint-scripts>Special:MyLanguage/Manual:Maintenance scripts|MediaWiki script that creates a new user and auto-promotes them to sysop and/or bureaucrat status. There is also an option to promote a user who already exists. If you still use MediaWiki 1.16 or older, you may need to create adminsettings>Special:MyLanguage/Manual:AdminSettings.php|AdminSettings.php.

Usage
==Example==