Solved

Remote add a Domain User to a local group

Posted on 2001-09-06
3
321 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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…
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

749 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