Tech Support Forum banner

Writing Script

664 Views 7 Replies 2 Participants Last post by  jimmy
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:
Status
Not open for further replies.
1 - 8 of 8 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.
See less See more
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.
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.
yes..we will add the scripts in the user profile for each site, to role it out.
So basically this will be added to the sysvol folder in the windows directory, then linked to profile, nice

http://www.devhardware.com/forums/programming-82/
The forum above they specialise in programming. If no one here can come with a solution, you might want to give them a go.
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.
No problem, we all have to learn some way. :laugh:
1 - 8 of 8 Posts
Status
Not open for further replies.
Top