PC Review


Reply
Thread Tools Rate Thread

Add/Remove users membership to groups remotely -win2k

 
 
omegagx@gmail.com
Guest
Posts: n/a
 
      18th Aug 2004
Hi
I want to add an Active Directory group to a group of Local
Administrators on 200 local machines. For example, in the domain
"test1", add group called "test1\local-admin" to "Administrators"
group on every computer in the domain. I found a script:

'adduser.vbs
'adds a user or group to a group
Set objGroup = GetObject("WinNT://" & Wscript.Arguments(0) & "/" & _
Wscript.Arguments(1))

objGroup.add "WinNT://" & Wscript.Arguments(0) & "/" & _
Wscript.Arguments(2)


but that only works on users and only local users - not domain users.
If you have any ideas on how to do this, I'd really appreciate it.
Thank you very much.

Mike Gorn.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Restricted Groups: "Member of" and add Domain Groups to local Groups Hansi Microsoft Windows 2000 Group Policy 1 5th Mar 2005 04:24 AM
Add/Remove users membership to groups remotely -win2k omegagx@gmail.com Microsoft Windows 2000 0 18th Aug 2004 01:11 AM
Accessing Users & Groups Remotely Jeff Windows XP Security 0 26th May 2004 11:00 PM
Reading membership of groups (including nested groups) Petra Hübner Microsoft ASP .NET 0 16th Feb 2004 08:07 PM
groups membership for new users not applied after DC upgrade Ray Microsoft Windows 2000 Group Policy 0 5th Dec 2003 03:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:44 PM.