Solved

DOS Command Line Problem

Posted on 2004-10-23
370 Views
Last Modified: 2012-06-27
Hey Everybody,

I am the newly appointed administrator of a nework, and I need to be able to add new accounts to my system using MS DOS command line.

Here are my specifications:

>> the method must work using MS DOS command prompt
>> the method must work on windows NT and windows XP
>> the new accounts must be able to have full admin rights
>> it would be great if the changes would be made to my entire network, if not that's still ok

Any help would be much appreciated,
Southern Curriez
0
Question by:blood_in_my_eye_16
    10 Comments
     
    LVL 15

    Accepted Solution

    by:
    Hi blood_in_my_eye_16,

    You can do much of this with the NET USER command:

    Add user "fred" to domain:
    NET USER fred password /ADD /DOMAIN

    Put "fred" in Domain Admins group:
    NET GROUP "Domain Admins" /ADD fred /DOMAIN

    Does that help?
    0
     

    Author Comment

    by:blood_in_my_eye_16
    Hey scampgb thanks for replying...

    I am having slight difficulties with this (unfortunately im new to windows).


    When testing it out on my home computer:

    1) I managed to add a new account without the admin rights by using    NET USER test 123456 /ADD
    2) When I tried    NET GROUP  it returned "This command can only be used on a Windows Domain Controller"

    1) how can i get this test account to have admin rights?
    2) i will try this out on monday on the computers in my network... will this only work on the server or will it work on the ordinary pc's also?

    Cheers,
    Southern Curriez
    0
     
    LVL 15

    Expert Comment

    by:scampgb
    blood_in_my_eye_16:
    Those commands were designed to be run on a network that uses a domain.  You have to run them from a PC that's part of the domain, and be logged in with an account that has Account Administrator rights.

    Windows XP Home cannot be part of a domain, which is why you got the error.
    On your home machine, you can make the new account into an administrator using the "User Accounts" option in Control Panel
    0
     
    LVL 5

    Assisted Solution

    by:Hammadian2
    If you want the new user to be admin on his own machine (and probably that what u need)  then use:

    Net LocalGroup "Administrators" /Add username

    if you want him to be admin on the domain then use the syntax suggested by scampgb
    0
     

    Author Comment

    by:blood_in_my_eye_16
    Net LocalGroup "Administrators" /Add username1
    produces the errror   "There is no such global user or group: username1"


    i also need to make the new user admin on the entire network (if this is possible).

    is the a in-depth tutorial or similar that explains how to do this in detail, because i cant seem to get anything to work here
    0
     
    LVL 5

    Assisted Solution

    by:Hammadian2
    first create the user:

    NET USER username1 password /ADD

    then add him to the administrators group:

    Net LocalGroup "Administrators" /Add username1

    if u want him to be administrator for the whole network check what scampgb, it's right
    0
     
    LVL 5

    Expert Comment

    by:Hammadian2
    0
     

    Author Comment

    by:blood_in_my_eye_16
    ahhh that's it

    i didnt realize that the user had to be created first, before he was made local admin or domain admin... everything works now

    thanks a lot guys
    0
     
    LVL 5

    Expert Comment

    by:Hammadian2
    you're welcomed
    thanks for the points
    0
     
    LVL 15

    Expert Comment

    by:scampgb
    Glad I could help :-)
    0

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone. Privacy Policy Terms of Use

    Featured Post

    Course: MongoDB Object-Document Mapper for NodeJS

    NodeJS (JavaScript on the server) is awesome, but some developers get confused about NoSQL when it comes to working in Node with MongoDB (NoSQL database). Do you need a better explanation of how to use Node.js with MongoDB? The most popular choice is the Mongoose library.

    I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
    I use more than 1 computer in my office for various reasons. Multiple keyboards and mice take up more than just extra space, they make working a little more complicated. Using one mouse and keyboard for all of my computers makes life easier. This co…
    In this Experts Exchange video Micro Tutorial, I'm going to show how small business owners who use Google Apps can save money by setting up what is called a catch-all email address in their Gmail accounts. By using the catch-all feature, small busin…
    This video discusses moving either the default database or any database to a new volume.

    875 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now