Tech Support Forum banner
Status
Not open for further replies.
1 - 8 of 8 Posts

·
TSF Enthusiast
Joined
·
905 Posts
Discussion Starter · #1 ·
Ok this maybe a long shot. is there any1 out there who can write a script for me please. We have run into a problem after installing Sp3 the firewall service stops running and we have found a fix which involved deleting local admin and recreating them due to the SID's.

Can you someone create a script or guide me into the right direction please.

i want to do the following:

Delete two local admin accounts

then recreate the admin accounts and add them to the admin group.

But the script should run from a non-admin account! can u guys help please?

Any replies are appreciated :pray:
 

·
Security Team , Visiting Trainee (247)
Joined
·
1,070 Posts
net localgroup administrators usernamehere /delete
net localgroup administrators usernamehere /delete

net user usernamehere /add
net user usernamehere /add
net localgroup administrators usernamehere /add
net localgroup administrators usernamehere /add

copy that onto notepad and save it as .bat

The first two lines you replace the usernamehere with the administrator name you want to delete, you mentioned to delete two administrator account so it has to be done twice.
The third and forth line you input the user you want to add. The fifth and sixth you type the username chosen above and this will them to admin group.

now this will only work on administrator account there is a small chance of it working in limited account. But I don't thing we are allowed in forums to bypass policies.
 

·
TSF Enthusiast
Joined
·
905 Posts
Discussion Starter · #3 ·
aww mate..there are 3000 desktops within my company. and this fix needs to be rolled out across. We clearly cannot give out admin password on all pc's to log them in and run the script.

surely you can help me please. it will save time and effort. Just want to be run the script without the need of having admin rights. please help.
 

·
Security Team , Visiting Trainee (247)
Joined
·
1,070 Posts
Hi, is this script being added to their profile via the active directory. To be fairly honest by knowledge in CMD is limited and though I would give the above code a go. Sorry, but hopefully someone here more experienced might help you.
 

·
TSF Enthusiast
Joined
·
905 Posts
Discussion Starter · #7 ·
So basically this will be added to the sysvol folder in the windows directory, then linked to profile, nice

yep..thats exactly what will be done..

thx for your help..not very gd at writing scripts/bat files this should add to the experience :D

thx for your help bro very much appreciated.
 
1 - 8 of 8 Posts
Status
Not open for further replies.
Top