Computer Hope

Microsoft => Microsoft DOS => Topic started by: maplealvon on February 21, 2009, 06:18:47 AM

Title: Help on making this batch file!!!
Post by: maplealvon on February 21, 2009, 06:18:47 AM
How do you make a batch file for vista home premium that makes other users into admins too? Dont worry about the priviledge of the executer coz my retarded comp turns all my other accs into limited everynow and then. Im using the default admin. I dont wanna reformat my pc coz i cbf doing it. I dont wanna system restore coz that does NOT work.

Thnx,
Alvon
Title: Re: Help on making this batch file!!!
Post by: Carbon Dudeoxide on February 21, 2009, 06:28:53 AM
We cannot help you make a Batch File to make another user an administrator.

Try a System Restore in Safe Mode (http://www.computerhope.com/issues/chsafe.htm)
Title: Re: Help on making this batch file!!!
Post by: maplealvon on February 21, 2009, 09:37:31 PM
hmm then how do i change the accounts from limited to admin using the command prompt?
Title: Re: Help on making this batch file!!!
Post by: BC_Programmer on February 21, 2009, 09:48:28 PM
you can't. It would defeat the purpose of a "LIMITED" account. Unless you're doing it from another administrator account, in which case you can just use the provided GUI features.
Title: Re: Help on making this batch file!!!
Post by: maplealvon on February 21, 2009, 09:50:33 PM
im an admin but yeah, my control panel's stuffed (idk why). It just lags and closes if i try to open it.
Title: Re: Help on making this batch file!!!
Post by: BC_Programmer on February 21, 2009, 09:53:54 PM
http://articles.techrepublic.com.com/5100-10878_11-5031577.html

will only work if you have the rights to modify other user accounts.

another option would be to run the command:

nusrmgr.cpl

which should open the User accounts control panel option.
Title: Re: Help on making this batch file!!!
Post by: BatchRocks on February 21, 2009, 09:59:50 PM
Can't you do Netuser?
Title: Re: Help on making this batch file!!!
Post by: maplealvon on February 21, 2009, 10:00:26 PM
I dont understand it. Can anyone give me a step by step guide of changing an account from admin to limited using the command prompt? Pictures would be helpful.

This is where im stuck:


[attachment deleted by admin]
Title: Re: Help on making this batch file!!!
Post by: BC_Programmer on February 21, 2009, 10:08:28 PM
another option would be to run the command:

nusrmgr.cpl

which should open the User accounts control panel option.

Title: Re: Help on making this batch file!!!
Post by: maplealvon on February 21, 2009, 10:12:06 PM
i did say that my control panel doesnt work.
im trying net user *(username)
but how do i change it from there?
Title: Re: Help on making this batch file!!!
Post by: BC_Programmer on February 21, 2009, 10:23:17 PM
that isn't control panel.

Title: Re: Help on making this batch file!!!
Post by: maplealvon on February 21, 2009, 10:25:28 PM
nusrmgr.cpl is something i dont have on my pc coz mine's vista home premium. im missing a lot of stuff lols,
 all my old xp .msc(s) are gone too. it's sad.
Title: Re: Help on making this batch file!!!
Post by: BC_Programmer on February 21, 2009, 10:30:46 PM
Code: [Select]
RunDll32.exe shell32.dll,Control_RunDLL nusrmgr.cpl

worked on my vista machine.

If you cannot system restore and your missing these control panel items making a batch file to workaround your inability to use control panel will get old quickly. Will your next thread be "batch file to change resolution"?

why not run

Code: [Select]
SFC /SCANNOW

which might fix your control panel.
Title: Re: Help on making this batch file!!!
Post by: Carbon Dudeoxide on February 22, 2009, 02:48:17 AM
We can not and will not help make you Administrator from a User Account. Period.

Why you may ask?

First, we don't know what the problem really is. For all we know, you could be some kid trying to gain access to the school computers.

Second of all, if we post the results here in this public forum, anyone can see it, including these kids.
Title: Re: Help on making this batch file!!!
Post by: maplealvon on February 22, 2009, 04:44:37 AM
Fine, here goes my explanation:
Problem - Control Panel got stuffed for no bloody reason and my accs change from lmt to adm automatically when i bootup.
I cant change my accounts coz i dont have the other dodgy apps in vista.
AND school networks dont work like that mate, it's on a lousy server coz i've seen one.

Sigh
Title: Re: Help on making this batch file!!!
Post by: mroilfield on February 22, 2009, 06:07:08 AM
if control panel got messed up wouldn't a repair install of vista fix that?

Title: Re: Help on making this batch file!!!
Post by: Carbon Dudeoxide on February 22, 2009, 06:35:27 AM
if control panel got messed up wouldn't a repair install of vista fix that?



Most likely.
Title: Re: Help on making this batch file!!!
Post by: GuruGary on February 22, 2009, 08:35:29 AM
Or from the command prompt try the command
Code: [Select]
control userpasswords
Title: Re: Help on making this batch file!!!
Post by: BatchRocks on February 22, 2009, 08:38:25 AM
Or from the command prompt try the command
Code: [Select]
control userpasswords

That works good, but they need to click everything ;o.
Title: Re: Help on making this batch file!!!
Post by: maplealvon on February 22, 2009, 01:21:53 PM
I solved it using cmd after a few hours of comparison with my friend's help. Turns out usernames with a '.' in them don't seem to work well with cmd. Other accounts could be changed other than one called "The.Sun". Oh well, I'll have to ask someone to delete then.
Title: Re: Help on making this batch file!!!
Post by: mroilfield on February 22, 2009, 10:53:31 PM
So why can't you do a repair install of vista so that it fixes your control panel to where you can do all of this yourself?
Title: Re: Help on making this batch file!!!
Post by: maplealvon on February 22, 2009, 11:39:40 PM
backing up stuff isnt that easy for me. i've got a ton of settings.
Title: Re: Help on making this batch file!!!
Post by: Carbon Dudeoxide on February 23, 2009, 12:21:49 AM
A repair install keeps all your files and settings.