NetAdminTools.com
 
Categories:
GNU/Linux | Homebrew designs | Perl | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS | Hail Support


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·REALbasic
·All Categories


NT Administration from the Command Line
Topic: Administration   Posted:1997-06-09
Printer Friendly: Print

spacerspacer
In addition to using the GUI to create accounts and groups, the command line can be used. This is often useful when automating server setup or recovery.

net user jsmith tempword /ADD /FULLNAME:"John Smith" /COMMENT:"Accounting Manager"
net localgroup "Accounting Local Resource Group" /add /COMMENT:"Payroll and A/R Files"
net group "Accounting Members" /ADD /COMMENT:"Members have access to Payroll and A/R Files"
net localgroup "Accounting Local Resource Group" "Accounting Members" /ADD
net group "Accounting Members" jsmith /ADD

The above lines will create a user, local groups, global groups, and assign the user to the global and the global to the local.

To see what users have accounts on the server, enter "net user".
To see what global groups exist on the server, enter "net group".
To see what local groups exist on the server, enter "net localgroup".

For a quick and dirty user list, you could route the output to a file by entering "net user > userlist.txt".

For more info, enter "NET HELP" to list commands and "NET HELP [command]" to list options for specific commands.





Please read our Terms of Use
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2008 NetAdminTools.com