Link to home
Start Free TrialLog in
Avatar of vhaperbaugub
vhaperbaugub

asked on

Additional Account in the Administrator Group

I need a script that will install a user account in the Administrator Group on a list of servers....sort of a back door account if the Administrator account is unkown. Is that possible?

Thanks
Avatar of tsaico
tsaico
Flag of Afghanistan image

TO make sure I understand, you want to run a batch on a server that will add a local account for the case all your network admins are suddenly gone?  I am not sure why you would need to have such a back door, since if you are in front of it, you can always hack your way into your own AD off a CD.

But if you want to do this,

/start
net user tsaico1 password! /add
net localgroup administrators tsaico1 /add
should work, making a new
/end

Ths should create a new users tsaico1 with the password of password!, then add it to the local administrators group.
Avatar of vhaperbaugub
vhaperbaugub

ASKER

I'm talking about if you take a server off the domain and you try to access it locally with the administrator account and nobody knows the password. I was thinking to have another account in the administrator group as a backup incase the administrator account doesn't work.
ASKER CERTIFIED SOLUTION
Avatar of tsaico
tsaico
Flag of Afghanistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial