Help! Need to Add user or global group to workstation's local group
Posted on 2003-03-17
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!