Re: adding a global group to the local administrators through a group policy
From: Chriss3 (noSpamHere_at_chrisse.se)
Date: 02/03/04
- Next message: Chriss3: "Re: GPO for viewing only"
- Previous message: Xavier: "adding a global group to the local administrators through a group policy"
- In reply to: Xavier: "adding a global group to the local administrators through a group policy"
- Next in thread: Marcus: "adding a global group to the local administrators through a group policy"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 3 Feb 2004 10:21:08 +0100
Assign the follow script as an Logon Script within a Group Policy, i hope
that helps. Members in your Global Group "Your Global Group" will be added
to the local administrators group during logon.
Dim net, DomainString, UserString, UserObj
set net = Wscript.CreateObject("Wscript.Network")
strComputer = "."
DomainString = net.UserDomain
UserString = net.UserName
Set objDomainUser = GetObject("WinNT://" & DomainString & "/" & UserString)
For Each ObjGroup In UserObj.Groups
Select Case GroupObj.Name
Case "Your Global Group"
Set objLocalGroup = GetObject("WinNT://" & strComputer &
"/Administrators,group")
objGroup.Add(objDomainUser.ADsPath)
End Select
Next
-- Regards, Christoffer Andersson No email replies please - reply in the newsgroup If the information was help full, you can let me know at: http://www.itsystem.se/employers.asp?ID=1 "Xavier" <xdepoorter_removespam@hotmail.com> skrev i meddelandet news:%23MaAGGj6DHA.1968@TK2MSFTNGP11.phx.gbl... > Situation: > > our PC's have all a local administrators group which contains different > specified users (depending on the users who will use the PC). > > Now we want to add one global group to the local administrators group > through a group policy *without* overwriting the current content of the > local administrators group (just add the group to the existing content). I > don't succeed in it, so could someone help me out? > > TIA, > > Xavier > >
- Next message: Chriss3: "Re: GPO for viewing only"
- Previous message: Xavier: "adding a global group to the local administrators through a group policy"
- In reply to: Xavier: "adding a global group to the local administrators through a group policy"
- Next in thread: Marcus: "adding a global group to the local administrators through a group policy"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|