Add Domain Users Group to Powe Users Group in Script 
Author Message
 Add Domain Users Group to Powe Users Group in Script

Legacy applications are making the upgrade to Windows 2000 difficult.  My
users cannot run many programs because they attempt to write to a restricted
area of the registry or the winnt and program files folders.

I thought an easy way to solve this would be to add the Domain Users group
of the logon domain to the Power Users group of each workstation.  I could
then use group policies to make their account act more like a normal Users

To avoid having to go to each workstation, I thought I would write a script
that is executed at startup.  The sample code is at the end of this message.

Unfortunately, I always get an error stating that the workstation does not
trust the domain.  I have no problems doing the procedure manually and I
have recreated the computer account in the domain.

Does anyone know how to make this work or have a better way to solve my
dilemna?  All help is appreciated.

Brad Wilkins
Dominion Consulting Engineers, P.C.

********** SAMPLE CODE **********

var network_object = WScript.CreateObject("WScript.Network");

var power_users_group = GetObject("WinNT://" + network_object.ComputerName +
"/Power Users,group");
power_users_group.Add("WinNT://myDomain/Domain Users,group");


Thu, 12 Dec 2002 03:00:00 GMT  
 [ 1 post ] 

 Relevant Pages 

1. Adding multiple users or groups to local groups

2. Add user to domain group

3. Add domain user to local PC Admins group?

4. Domain Login-Script / regarding user′s groups

5. Logon scripts specific to a user's domain group

6. help Adding a Domain group to a Local Group

7. Add domain group to local group

8. Adding domain groups to gthe local administrator group

9. Adding a Domain Global group to a machine local group in Windows 2000

10. Adding a domain group to local administrators group

11. How do I add a domain global-groups in a member-server local group

12. Adding user IDs to a group with a script


Powered by phpBB® Forum Software