addding user to group thr adsi

Results 1 to 2 of 2

Thread: addding user to group thr adsi

  1. #1
    Join Date
    Dec 1969

    Default addding user to group thr adsi

    i am adding user to a group by adsi for that i think i am lacking in setting Active directory properties accordingly..any one can help me regarding what privilage settings to be done in Active run this script..cas now i am getting error which didnt specifes anything ..i am little bit confused...<BR><BR>the code..<BR>&#060;% <BR>Dim Group <BR>Dim GroupName <BR>Dim GroupDomain <BR>Dim User <BR>Dim UserName <BR>Dim UserDomain <BR><BR>GroupName = "Fema" <BR>GroupDomain = "Group" <BR>UserName = "fema1" <BR>UserDomain = "" <BR><BR> Set User = GetObject("WinNT://,user") <BR> Set Group = GetObject("WinNT://"& GroupDomain &"/"& GroupName &",group") <BR> Group.Add(User.ADsPath) <BR><BR>Group.SetInfo <BR>%&#062; <BR><BR>error at <BR>Set User = GetObject("WinNT://,user") <BR>this line....or send me the code which is running at ur server..

  2. #2
    Join Date
    Dec 1969

    Default RE: addding user to group thr adsi

    when you access something through a webpage, you are authenticatesd through the IUSR_&#060;machinename&#062; account. This account needs permissions to add a user.<BR><BR>For more info in adsi, check

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts