Re: Group Policy questions
- From: VMM <VMM@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 03:16:02 -0700
Hi Carl O,
Sorry Carl, my mistake for not add any comments in code.
Assume the follwing cenario:
Domain name = XPTO
Domain Global Security Group = ITTechnicians
Purpose = add ITTechnicians Domain Group to Administrators Local Group
'-------------------------------------------------------------
Set wshNetwork = CreateObject("WScript.Network")
ComputerName= wshNetwork.ComputerName
localstr="WinNT://" & Computername
'Get domain group and assigned to ITTechs Variable
ITTechs="WinNT://XPTO/ITTechnicians"
'Add Domain Group to Administrators Local Group
AddToGroup ITTechs, "Administrators"
Function AddToGroup(member, Grpname)
Dim grp1
Set grp1 = Getobject(localstr&"/"& Grpname,group)
grp1.Add (member)
End Function
'-------------------------------------------------------------
Please let me know if you have some questions.
Regards,
.
- Follow-Ups:
- Re: Group Policy questions
- From: Carl O
- Re: Group Policy questions
- References:
- Group Policy questions
- From: Dave Fitton
- RE: Group Policy questions
- From: VMM
- Re: Group Policy questions
- From: Carl O
- Re: Group Policy questions
- From: VMM
- Re: Group Policy questions
- From: Carl O
- Group Policy questions
- Prev by Date: Re: Mouse policy
- Next by Date: Logoff scripts didn't run, Event 1000 errors in App log
- Previous by thread: Re: Group Policy questions
- Next by thread: Re: Group Policy questions
- Index(es):