Here is the addusers.vbs script that does exactly that:
'
----------------------------------------------------------------------
' // -- This notice must stay in place --
' //
' // Copyright (c) 2000, 2001,2002 Matthew Fisher
' // post questions/comments on
' //
' // Due to the sheer volume, Support questions
' // are *never* answered via email, sorry.
' //
' // This is free software however you may not redistribute it,
' // pass it off as your own work, remove any headers or notices,
' // sell it either by itself or as part of a compilation,
' // or otherwise bend, fold, or mutilate it. All notices must
' // remain in this source and all resulting output.
' //
' // To learn more about this script and more visit
' ----------------------------------------------------------------------
' // AddGroup.vbs.
' Runs in the cscript.exe script engine.
' Adds a global group to a local group using Active Directory Services Interface (ADSI)
' Usage: cscript.exe addgroups.vbs computername
' Can be batched to operate on multiple computers.
'forces methodical coding - makes us dimension our variables and won't let us make typos.
Option Explicit
' Dimension our memory
Dim strComputer 'Holds the computer to work on.
'Can be specified in the command line to batch this out.
Dim strLocalGroup 'Holds the local group that we want to add a global group to
Dim strDomain 'Holds the domain name that has the global group we want to add
Dim strGlobalGroup 'Holds the global group that we're adding to the local group
Dim oDomain 'Holds the ADSI object we need for this all to work.
Dim oGroup 'Holds the ADSI object we need for this all to work.
'And initialize the variables I just dimensioned. Note that you can
' 'hard code' the computer name here, but it doesn't make a whole lot of sense to.
strComputer=""
strLocalGroup="Power Users"
strDomain="Domain name"
strGlobalGroup="Global group name"
'If the computer name isn't hardcoded, and they didn't
' give it to us in the command line parameters, then
'ask for it here.
IF strComputer="" AND wscript.arguments.count<>1 THEN
wscript.stdout.writeline "AddGroup.vbs: Missing or incorrect parameters."
wscript.stdout.writeline "Prompting for information: "
wscript.stdout.write "What computer do you want to operate on ? "
strComputer=wscript.stdin.readline
ELSE
strComputer=wscript.arguments(0)
END IF
wscript.stdout.writeline "Connecting to " &strComputer
Set oDomain = GetObject("WinNT://" & strComputer)
Set oGroup = oDomain.GetObject("Group", strLocalGroup)
oGroup.Add ("WinNT://" & strDomain & "/" & strGlobalGroup)
wscript.stdout.writeline "Done. Added " & strDomain & "\" & strGlobalGroup & " to " & strComputer & "\" & strLocalGroup
set oGroup=Nothing
setoDomain=Nothing
strComputer=""
strLocalGroup=""
strDomain=""
strGlobalGroup=""
' ablee-ablee, that's all folks !