Solved

Remote add a Domain User to a local group

Posted on 2001-09-06
3
316 Views
Last Modified: 2010-04-13
Hi,
I want to remote add a DomainUser to a computer's LocalGroup Administrators Group By a VB script.

What is the simples way to do it?

Regards
       Anders Johansson
0
Comment
Question by:epkanj
  • 2
3 Comments
 
LVL 5

Expert Comment

by:Draak
ID: 6460069
use the resource kit utility addusers.exe

create a file with following content:

[Local]
Administrators,Members can fully administer the computer/domain,BEBRUSNIA\Domain Admins

Save it and use following command:

addusers /c <your filename> \\<remote computername>


best regards

Draak
0
 
LVL 5

Accepted Solution

by:
Draak earned 200 total points
ID: 6460075
extra comment:

I just added the Domain Admins group from the domain called BEBRUSNIA to the local group Administrators by using the file created.

in your case change BEBRUSNIA\Domain Admins by the account you wish to add ( may be a global group or individual account)

best regards

Draak
0
 
LVL 1

Author Comment

by:epkanj
ID: 6460087
Thanks, works fine for me

  //Anders Johansson
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Owning a franchise can be the dream of a lifetime. It provides a chance for economic growth. You can be as successful as you want.  To make your franchise successful, you need to market it successfully. Here are six of the best marketing strategies …
This video discusses moving either the default database or any database to a new volume.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

758 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

19 Experts available now in Live!

Get 1:1 Help Now