Set obj = GetObject("WinNT://computername/LocalgroupName,group")

Set new = GetObject("WinNT://domainname/samaccountname-of-group,group")

obj.add(new)

Set new = Nothing

Set obj = Nothing

 

Regards,

 

Michael B. Smith

MCITP:SA,EMA/MCSE/Exchange MVP

http://TheEssentialExchange.com

 

From: Tom Miller [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 12, 2008 12:33 PM
To: NT System Admin Issues
Subject: VB script - add domain user/group to local group

 

Hi Folks,

 

Can someone post a script to add a domain group I created to a local PC's
group?  I've found several but am seeking "expert" options from the list as
well.

 

Tom

 

Confidentiality Notice: This e-mail message, including attachments, is for
the sole use of the intended recipient(s) and may contain confidential and
privileged information. Any unauthorized review, use, disclosure, or
distribution is prohibited. If you are not the intended recipient, please
contact the sender by reply e-mail and destroy all copies of the original
message. 

 

 

 

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to