Script Error - A member could not be added to or removed from the local group because the member

I was able to create a user successfully and when looking at the local users it is listed there. Also when looking at the groups "Network Configuration Operators," is listed. Tried adding the new local user I created to that group and received the error "A member could not be add to or remvoed from the local group because the member does not exist." I can see the user so I know if fact it does exist. Below is the code I'm using. The error also states that the error is in line 5 char 1.

strComputer = "."
Set objGroup = GetObject("WinNT://" & strComputer & "/Network Configuration Operators,group")

Set objUser = GetObject("WinNT://" & strComputer & "/testuser,user")
objGroup.Add(objUser.ADsPath)

[1023 byte] By [srahoi] at [2008-1-9]
# 1

Hi srahoi,

This is forum is only for Windows Forms programming questions. I recommend you post it on the Microsoft Newsgroups for better responses.
http://www.microsoft.com/communities/newsgroups/default.mspx

Thanks.

Rong-Chun Zhang

Rong-ChunZhang-MSFT at 2007-10-2 > top of Msdn Tech,Feedback for forums and MSDN websites,Off-Topic Posts (Do Not Post Here)...