Re: Create windows user account
From: Alon Bar-Lev (alon_at_xor-t.com)
Date: 03/24/05
- Next message: lelteto: "RE: CryptAcquireContext fails with no error number - only after reboot"
- Previous message: lhanekamp65: "Development Language for Gina Development"
- In reply to: Sam Hobbs: "Re: Create windows user account"
- Next in thread: Cristian Amarie: "Re: Create windows user account"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 24 Mar 2005 19:02:33 +0200
Yes, the second is closer, but it uses LDAP provider...
In order to handle local groups you should use WinNT provider.
Best Regards,
Alon Bar-Lev.
"Sam Hobbs" <samuel@social.rr.com_change_social_to_socal> wrote in message
news:u5IbuYBMFHA.508@TK2MSFTNGP12.phx.gbl...
> Is one of the following an example? There is a big difference between the
> two but the second one is a closer match to your sample.
>
> http://www.microsoft.com/technet/scriptcenter/scripts/ad/computer/cptrvb02.mspx
> http://www.microsoft.com/technet/scriptcenter/scripts/ad/users/manage/usmgvb05.mspx
>
>
> "Alon Bar-Lev" <alon@xor-t.com> wrote in message
> news:e4oUDFyLFHA.3988@tk2msftngp13.phx.gbl...
>> You can use ADSI,
>> Try something like:
>>
>> I am not stong in VB... :(
>>
>> Dim computer
>> Dim user
>> Dim group
>>
>> set computer = GetObject ("WinNT://.")
>>
>> Set user = computer.Create ("user", "user1")
>> user.SetInfo ()
>>
>> Set group = GetObject ("WinNT://./Administratr,group")
>> group.Add (user.AdsPath)
>> group.SetInfo ()
>>
>> Best Regards,
>> Alon Bar-Lev
>>
>
>
- Next message: lelteto: "RE: CryptAcquireContext fails with no error number - only after reboot"
- Previous message: lhanekamp65: "Development Language for Gina Development"
- In reply to: Sam Hobbs: "Re: Create windows user account"
- Next in thread: Cristian Amarie: "Re: Create windows user account"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|