![]() |
|
|
|||
|
|||
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 & 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 |
|
|
|||
|
|||
|
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.
__________________
[SIGPIC]http://img81.imageshack.us/img81/6458/signaturexr5.png[/SIGPIC] |
|
|
|||
|
|||
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 |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|