#14141 - 2001-11-12 10:59 AM
GroupAdd UDF
|
Mark Pietersz
Getting the hang of it
Registered: 2001-09-30
Posts: 74
Loc: Melbourne, Australia
|
Folks,Having problems with using the GroupAdd UDF On trying to add a user to to domain group the function fails at: $group = GetObject("WinNT://$target/$group") I have even tried to hard code but i keep getting the error -2147024843. Platform NT Server 4.0, SP6a KiXtart 2001, RC3, Build 50 ADSI 2.5 I look forward to your responses
_________________________
Mark Pietersz
|
|
Top
|
|
|
|
#14142 - 2001-11-12 11:07 AM
Re: GroupAdd UDF
|
Mark Pietersz
Getting the hang of it
Registered: 2001-09-30
Posts: 74
Loc: Melbourne, Australia
|
A bit more infoGetObject("WinNT://[domain name]") returns error code 0. It seems to complain when I extend it to GetObject("WinNT://[domain name]/[group name]") The user that the script runs under has full domain access rights as far as I am aware
_________________________
Mark Pietersz
|
|
Top
|
|
|
|
#14144 - 2001-11-12 03:14 PM
Re: GroupAdd UDF
|
Mark Pietersz
Getting the hang of it
Registered: 2001-09-30
Posts: 74
Loc: Melbourne, Australia
|
BryceThe group name is PS_Developers and the domain is an NT domain. Would you prefer to continue this via email ?
_________________________
Mark Pietersz
|
|
Top
|
|
|
|
#14146 - 2001-11-12 03:30 PM
Re: GroupAdd UDF
|
Mark Pietersz
Getting the hang of it
Registered: 2001-09-30
Posts: 74
Loc: Melbourne, Australia
|
BryceYou are correct. In fact it's about half past twelve at night. I have had a backup tape device failure and am in the process of implmenting a workaround. It's going well so I suspect that I will be gone in about 45 minutes. Is there any further info that I can supply ?
_________________________
Mark Pietersz
|
|
Top
|
|
|
|
#14149 - 2001-11-13 03:33 AM
Re: GroupAdd UDF
|
Mark Pietersz
Getting the hang of it
Registered: 2001-09-30
Posts: 74
Loc: Melbourne, Australia
|
Bryce,The group is global ( i also tried with "Domain Admins") however ADSI is NOT installed on all domain controllers. I'm sure that it is not included as part of our standard NT server setup. What is the requirement for the installation of ADSI for GetObject("WinNT:// etc) to work ? Is it possible to test scripts without all controllers having ADSI installed ?
_________________________
Mark Pietersz
|
|
Top
|
|
|
|
#14150 - 2001-11-13 03:35 AM
Re: GroupAdd UDF
|
Mark Pietersz
Getting the hang of it
Registered: 2001-09-30
Posts: 74
Loc: Melbourne, Australia
|
Bryce@SERROR returns Error (317 / 13D) while retrieving error information for 8007203A
_________________________
Mark Pietersz
|
|
Top
|
|
|
|
#14153 - 2001-11-13 05:43 AM
Re: GroupAdd UDF
|
Mark Pietersz
Getting the hang of it
Registered: 2001-09-30
Posts: 74
Loc: Melbourne, Australia
|
Bryce,Unfortunately we are still on a NT Server/Win9x client infrastructure although we are looking to move to Win2K. Another tricky one is that the provider is case sensitive ie WINNT is not the same as WinNT. Q. If ALL NT machines involved in the ADSI exchange require ADSI to be installed what machines are being used when you call WinNT://Domain/Group
_________________________
Mark Pietersz
|
|
Top
|
|
|
|
#14155 - 2001-11-13 01:28 PM
Re: GroupAdd UDF
|
Mark Pietersz
Getting the hang of it
Registered: 2001-09-30
Posts: 74
Loc: Melbourne, Australia
|
HmmMy calling machine does have ADSI installed The code is quiet straight forward $dom = GetObject("WinNT://ADECCO") returns no error $dom = GetObject("WinNT://ADECCO/Domain Users") returns the error as mentioned
_________________________
Mark Pietersz
|
|
Top
|
|
|
|
#14159 - 2001-11-14 06:57 AM
Re: GroupAdd UDF
|
Mark Pietersz
Getting the hang of it
Registered: 2001-09-30
Posts: 74
Loc: Melbourne, Australia
|
Shawn,ADECCO is the domain name. Interesting that @serror returned by me "Error (317 / 13D) while retrieving error information for 8007203A" is different to the one returned by Bryce "The network path was not found." Certainly $dom = GetObject("WinNT://ADECCO") works and if I loop through the objects returned I get lots of stuff back. I'm very perplexed. Is the solution to install ADSI on all computers or all network servers or just DCs and BDCs ?
_________________________
Mark Pietersz
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 293 anonymous users online.
|
|
|