Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: exporting * importing users into groups

HTVi
TV Discussion Newsgroups

exporting * importing users into groups
pljdoyle <pljdoyle.3k8yxa[ at ]DoNotSpam.com> 12/10/2008 11:13:23 AM
Hi,
I am wanting to export a list of usernames from an AD group & then import them back into another group. I believe it is possible to do this using the csvde command, but Im not sure of the syntax. Would some one be kind enough to explain what syntax I would use for both of these tasks please?

Thanks -- pljdoyle ------------------------------------------------------------------------ pljdoyle's Profile: http://forums.techarena.in/members/pljdoyle.htm View this thread: http://forums.techarena.in/server-scripting/1084621.htm http://forums.techarena.in
Re: exporting * importing users into groups
"Richard Mueller [MVP]" <rlmueller-nospam[ at ]ameritech.nospam.net> 12/11/2008 1:55:49 PM
pljdoyle wrote:

[Quoted Text]
> I am wanting to export a list of usernames from an AD group & then
> import them back into another group. I believe it is possible to do
> this using the csvde command, but Im not sure of the syntax. Would some
> one be kind enough to explain what syntax I would use for both of these
> tasks please?
>
> Thanks

A VBScript solution would be similar to:
===========
' Bind to "source" group.
Set objGroup1 = GetObject("LDAP://cn=Source
Group,ou=West,dc=MyDomain,dc=com")

' Bind to "target" group.
Set objGroup2 = GetObject("LDAP://cn=Target
Group,ou=West,dc=MyDomain,dc=com")

' Enumerate direct members of "source" group.
For Each objMember In objGroup1.Members
' Check if this object is already a member of "target" group.
If (objGroup2.IsMember(objMember.AdsPath) = False) Then
' Make a member of "target" group.
objGroup2.Add(objMember.AdsPath)
Then
Next

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


Re: exporting * importing users into groups
"Wiseman82" <nospam[ at ]nospam.com> 12/11/2008 7:37:46 PM
You could do this with my Bulk Password Control/Bulk AD Users tool:

http://www.wisesoft.co.uk/Products/PasswordControl/BulkPasswordControl/

Just select the users from the old group and then use the bulk modify dialog
to append the new group.

Hope this helps,

David
http://www.wisesoft.co.uk
(My personal website and a free resource for IT Professionals)

PS

A new version of the application called "Bulk AD Users" is available as beta
for testing purposes:
http://www.wisesoft.co.uk/articles/bulk_ad_users_beta_testing.aspx


"pljdoyle" <pljdoyle.3k8yxa[ at ]DoNotSpam.com> wrote in message
news:pljdoyle.3k8yxa[ at ]DoNotSpam.com...
[Quoted Text]
>
> Hi,
> I am wanting to export a list of usernames from an AD group & then
> import them back into another group. I believe it is possible to do
> this using the csvde command, but Im not sure of the syntax. Would some
> one be kind enough to explain what syntax I would use for both of these
> tasks please?
>
> Thanks
>
>
> --
> pljdoyle
> ------------------------------------------------------------------------
> pljdoyle's Profile: http://forums.techarena.in/members/pljdoyle.htm
> View this thread: http://forums.techarena.in/server-scripting/1084621.htm
>
> http://forums.techarena.in
>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen