Command line NT Domain Controller

Discussion in 'Windows Desktop Systems' started by NegativeFactor, Feb 13, 2003.

  1. Does anyone know of a tool that will allow you to add and remove users from domain groups from the command line? Basically i'm looking to be able to remove users from groups in the login scripts.

    Thanks in advance.
     
  2. come on people there must be something out there!
     
  3. Zedric

    Zedric NTFS Guru Folding Team

    Messages:
    4,006
    Location:
    Sweden
    You'll have to wait more than two hours for the answer to that one! :) It's not common knowledge. Personally I have no idea.
     
  4. Enyo

    Enyo Moderator

    Messages:
    1,338
    The command line tools that may help you are here:

    http://www.microsoft.com/technet/tr...ver/proddocs/server/DS_command_line_tools.asp

    It will require a bit of scripting to get the results you want but these are the tools you need.
     
  5. Thanks for the info, but this appears to be for use with Active Directory (Windows 2000), which unfortuntely we do not yet have implemented.

    We are using the old NT4 'Domain' Structure.
     
  6. Enyo

    Enyo Moderator

    Messages:
    1,338
    Ah i see, sorry bud.

    Erm... im betting on a tool from the resource kit but have never worked much with NT4 so cant help too much.

    Maybe UPEDIT or ADDUSERS from the ResKit.

    USRTOGRP.EXE can add users to local or global groups from a user specified input text file but i dont know about removing.

    Ill see if i can get a solution this has my interest now :D
     
  7. funky dredd

    funky dredd Moderator

    Messages:
    2,346
    Location:
    Florida
    Try doing a search on Windows 2000 magazine's website. I once read an article they did on how to do this. If your lucky it might still be there.

    Windows 2000 mag
     
  8. Enyo

    Enyo Moderator

    Messages:
    1,338
    Automating the Addition of Users and Groups to a Server:

    http://www.windowswebsolutions.com/Articles/Index.cfm?ArticleID=9124

    And a forum thread about USRTOGRP.EXE which i mentioned earlier:

    http://www.winnetmag.com/Forums/messageview.cfm?catid=38&threadid=28812

    Also mentions net group so take a look at

    NET HELP GROUP

     
  9. Thanks for the help people, i'm not at work at the moment so I can't do any fiddling.

    I'll give these methods a try tomorrow and let you know how I get on.

    Cheers.