XTREME-SOURCE
Search:

Go Back   XTREME-SOURCE > OPERATING SYSTEMS SUPPORT > OPERATING SYSTEMS > WINDOWS XP
Shoutbox
Loading...


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 06-08-2008, 09:38 PM
Member
 
Join Date: Apr 2007
Location: Australia
Posts: 142
Send a message via MSN to The Stig
BAT file user account creator help

Hey, i'm in the middle of making a simple BAT file to create a windows user when you click on the bat file. But when you execute the file it doesn't make the account a admin.

Code:
@echo off
net user Test /add
net localgroup Administrators
net share c:\/unlimited

pause
Anyone know any DOS commands that will help with this?
& to make it hhave a password. We google'd around but couldn't find anything. (we being me and my mate... to play a prank on the school by creating a account to get unlimited access to just about everything without the school network monitoring us)
The next lesson I have with computers is on Wednesday. So if I can get help by tuesday night I would appreciate.

Thanks.
__________________
Motherboard: Gigabyte GA-K8VM800M. Processor: AMD Sempron 3000+ 1.81GHz performance rated at 3GHz OC'ed to 1.9GHz. Memory: 1GB. Graphics Card: nVIDIA GeForce 7300GT Monitor: Benq FP71G+S. OS: Windows XP SP3 HDD: 830GB Total
Please visit my site. If not interested please click my google ads
Reply With Quote
 
Old 06-08-2008, 11:30 PM
Administrator
 
Join Date: Oct 2005
Posts: 4,110

to change or make a password for a user through commands it's this

net user user_name new_password

user_name = name of the user 'you'll have to type it in before executing the command'

new_password = the passowrd the user is to have ' you'll have to type it in again before you execute'

You will have to be an admin to use these commands.

also the making the user an admin might be something like this

net localgroup Administrators /add <username>

or

net localgroup "Power Users" /add <username> (quotes needed here)


So it'd be like this

Code:
@echo off
net user Test /add
net localgroup Administrators /add Test
net user Test  password
net share c:\/unlimited

pause

I haven't tested it,but it's worth a try.
Reply With Quote
 
Old 06-09-2008, 09:59 PM
Member
 
Join Date: Apr 2007
Location: Australia
Posts: 142
Send a message via MSN to The Stig

Yaysss!
It works. I praise you.
I checked this at school and made it... but it didn't work... Cause I dont have access to C:... but on the FTV computers which have an extra hdd.. i might be able to do it.
=D
Thanks anyway. It will be fun to muck around with friends computers :P
__________________
Motherboard: Gigabyte GA-K8VM800M. Processor: AMD Sempron 3000+ 1.81GHz performance rated at 3GHz OC'ed to 1.9GHz. Memory: 1GB. Graphics Card: nVIDIA GeForce 7300GT Monitor: Benq FP71G+S. OS: Windows XP SP3 HDD: 830GB Total
Please visit my site. If not interested please click my google ads
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


vBulletin 3.7.1 ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0