I think you can use a portion of this script for your needs
Code:
Set objRootLDAP = GetObject("LDAP://rootDSE")
strOUPath = "OU=Kiosk Users,OU=Sites," & objRootLDAP.Get("defaultNamingContext")
strNewPrimaryGroup = "CN=Kiosk_Users,OU=Kiosk Users,OU=Sites," & objRootLDAP.Get("defaultNamingContext")
strOldPrimaryGroup = "CN=Domain Users,CN=Users," & objRootLDAP.Get("defaultNamingContext")
Const ADS_SCOPE_SUBTREE = 2
Set objConnection = CreateObject("ADODB.Connection")
Set objCommand = CreateObject("ADODB.Command")
objConnection.Provider = "ADsDSOObject"
objConnection.Open "Active Directory Provider"
Set objCommand.ActiveConnection = objConnection
objCommand.Properties("Page Size") = 1000
objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE
objCommand.CommandText = _
"SELECT AdsPath FROM 'LDAP://" & strOUPath & "' WHERE objectClass='person' AND objectCategory='user'"
Set objRecordSet = objCommand.Execute
While Not objRecordSet.EOF
Set objUser = GetObject(objRecordSet.Fields("adsPath").Value)
' Bind to the new primary group and add the user as a member, then set it as the primary group
Set objNewPrimaryGroup = GetObject("LDAP://" & strNewPrimaryGroup)
objNewPrimaryGroup.Add(objUser.ADsPath)
objNewPrimaryGroup.GetInfoEx Array("primaryGroupToken"), 0
objUser.primaryGroupID = objNewPrimaryGroup.primaryGroupToken
objUser.SetInfo
' Remove the user from the group that was the previous Primary group
Set objOldPrimaryGroup = GetObject("LDAP://" & strOldPrimaryGroup)
objOldPrimaryGroup.Remove objUser.adsPath
objOldPrimaryGroup.SetInfo
objRecordSet.MoveNext
Wend
MsgBox "Finished." bio...