
ADSI: Intermitent Network Path Was Not Found when binding to group
When I use a short name for "group", the user can be added OK.
If "group" is a long name, I am getting error "network path was not found"
when binding to the group. Can you please help me ?
group = "A" '** This group works fine
'group = "ThisGroupIstheNameOfMyServerHere" '** I triple checked that the
group exists, but I am getting error
domain = "//TEST"
User = "MyUser"
' Bind to a group
Set oGroup = GetObject("WinNT:" & Domain & "/" & group) '*** The error
network path was not found happens here intermitently when the group has a
long name
oGroup.Add "WinNT:" & Domain & "/" & user
WScript.quit
Set OGroup = Nothing