Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Help!  Need to Add user or global group to workstation's local group

Posted on 2003-03-17
3
Medium Priority
?
914 Views
Last Modified: 2010-05-01
OK, I can find examples of how to use NetGroupAddUser to add a user to a global group on our NT Domain, but what I need to do is be able to add a user or global group to the local group on a workstation. . .

To make a long story short,  We've restructured our organization and added a new support group, and created a new Global Group for them in our NT Domain.  Now we want to add that global group into the Administrator's group on the 700 workstations this new group supports, so those I.T. staff can support the workstations properly.  *Note, Windows 2000 and NT4 workstations both.

I've re-worked an existing app of mine to show each workstation in the domains they support, and list the members of the administrators group.  This was so we could determine which machines had and didn't have that group in Administrators.  I'm running this app from my administrative workstation.  I want to be able to implement code to add the new group to the remote computer with a click of a button, so if some code examples could be provided that allow me to choose a remote computer (ie: \\servername) instead of just local.  

I really don't want to have to visit 700 machines individually . . .

Any help appreciated, thanks all!
0
Comment
Question by:Glen A.
3 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 400 total points
ID: 8168294
check out this link and look at the code page:

http://www.vbadmincode.btinternet.co.uk/

Look for the example called "wks" and see if it can help.
0
 
LVL 13

Author Comment

by:Glen A.
ID: 8169245
Found what I needed after pouring through LOTS of code, and modifying it for my purposes.

Lots of code, lol.

Amazingly enough I thought I looked at the vbadmincode page, as well as the other ones I frequent.  Not sure how I missed it . . .

that Wks project is fairly large.  Slow as a dog in our agency, mine is much faster although not as detailed.

Thanks for the help,
0
 

Expert Comment

by:Pranav0981
ID: 30807016
Hi vinnyd79

Even i am searching for the same code.

The Link does not open is it the correct code.
http://www.vbadmincode.btinternet.co.uk/
Can you mail me the code.

Thanks & Regards

Pranav Parab


0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

564 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