Dim objComp
Dim objGroupAdmin
Dim objGroupUsers
Dim objUser
Dim strComp
strComp = "WinNT://corpdev3,Computer"
Set objComp = GetObject(strComp)
Set objUser = objComp.GetObject("user","test01")
Set objGroupAdmin = objComp.GetObject("group", "Administrators")
Set objGroupUsers = objComp.GetObject("group", "Users")
On Error Resume Next
'Ignore errors because it will error if the user is not in the admin group and will error if the user is already in the users group.
objGroupAdmin.Remove objUser.AdsPath
objgroupUsers.Add objUser.AdsPath