The command "net localgroup Administrators /Add <newmember>" Kinda works, but then I need
to manually type in the command after every reinstall I do.
1. log on as the user that needs admin rights (or admin, dosent really matter)
2. Run cmd as the local administrator account
3. Run the command "net
localgroup Administrators /Add user1"
Then I might as well log in and add the user from computer management.
Since the next computer I reinstall is another machine, and another user. I really can`t use that command.
Because it does not find the current user.
The best scenario would be if a user gets a promt at the very first logon. And when they press "ok"
on this prompt. The command "net localgroup Administrators /Add (Automatically finds current
username)"
I have seen software that runs on the first logon before. That software popped up after the domain user
logged on to the machine. The user would press start on this software. Then the software changed the computer name and added user to local admin. It deleted it self when it was done.
-
Edited by
Whobe1337
Wednesday, April 22, 2015 10:22 AM