Solved

Remote add a Domain User to a local group

Posted on 2001-09-06
3
322 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Article by: Justin
In light of the WannaCry ransomware attack that affected millions of Windows machines, you might wonder if your Mac needs protecting. Yes, it does and here is how to do it.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

728 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