Add User To Domain Group From Command Prompt
Maybe your like
Windows Commands, Batch files, Command prompt and PowerShell on July 6, 2017 Add user to domain group from command prompt by Srinivas If you are a domain administrator and looking to add users to domain or active directory group from command prompt, this post shows you how to do that with net group command.
Execute the below steps to add users to domain group.
- Open command prompt
- Run the below command net group groupName userName /ADD /DOMAIN
Example: To add a user named ‘dave’ to the domain group “Domain Admins”
C:\>net group "Domain Admins" testuser /ADD /DOMAIN The command completed successfully.Now list the members of the domain group.
C:\>net group "Domain Admins" Group name Domain Admins Comment Designated administrators of the domain Members ------------------------------------------------------------------------------- Administrator dave The command completed successfully.In this example case, the group name has white space in it, that’s why it’s wrapped up double quotes, so that the command reads the whole thing as as group name.
1 comment… add one- Lutfulmanan Khan
Thanx a lot!
Reply Link
Leave a Comment
Name *
Email *
Website
Comment
Current ye@r * Leave this field emptyMore Recent Posts
- Add new user account from command line (CMD)
- Delete directory from command line [Rmdir]
- TaskKill: Kill process from command line (CMD)
- Kill Chrome from command line
- Find windows OS version from command line
- How to check if Windows 32 or 64 bit?
- Get Windows install date
- User questions about fixing javac not recognized error
- How to Kill process from PowerShell
- Fix WMIC invalid alias verb error
E-mail Newsletter
Categories
- Automation (2)
- Batch Files (9)
- Command Line Errors (2)
- Command prompt (3)
- Directories (5)
- Download (1)
- Files (31)
- Java (2)
- Network (6)
- PowerShell (5)
- Remote access (7)
- Run commands (28)
- System Configuration (28)
- System information (21)
- Uncategorized (43)
- User Accounts (23)
- User Settings (9)
- Windows Commands (34)
- Windows shortcuts (4)
- WMIC (1)
Tag » Add Computer To Ad Group Cmd
-
Use Directory Service To Manage AD Objects - Windows Server
-
Looking For A Script To Add A Computer To A List Of Groups In AD
-
Adding Computer To AD Domain Group After AD Domain Join
-
How To Add A Computer To A Domain (GUI And PowerShell)
-
How To Add A Computer Account To A Group - System Center
-
Add User To Group From Command Line (CMD)
-
Add Computer To Group Using Add-ADGroupMember - ShellGeek
-
How To Check AD Group Membership With Command Line - Netwrix
-
How To Check AD Group Membership? - TheITBros
-
Adding Domain Users To The Local Administrators Group In Windows
-
How To Find Out Which Active Directory Groups You Are A Member Of
-
Configuring Permissions And Groups (Windows Server Domain ... - IBM
-
Net (command)/Localgroup - Wikiversity
-
Using The Net Command To Add Domain Users And Groups - YouTube