Ask a Question related to Windows Server, Design and Development.
-
Sabo, Eric #1
Exporting users that below to a certain group - windows 2003 active directory
Is there any tool or script that will export the users names from a certain
group from the active directory? I tried ldifde but it exports the cn
names only. I looks at the script center, there was nothing there also.
--
Eric Sabo
NT Administrator
Sabo, Eric Guest
-
problem getting User Group Memebership in Active Directory
I have a .aspx page that gets USERS GROUPS from the Active Directory after inputing the USERNAME of the user in a textbox. And this has been... -
Unable to create Users using Directory services in Windows 2003 Se
I am unable to create new users using directory services in Windows 2003 server. But it is possible to create users with ASP.NET applications in... -
Active Directory Role-Based Authentication Fails for Users - Local
Developed a web-based application that queries active directory for roles to associate the appropriate functionality to the user. After a recent... -
Enable additional users properties in Active Directory users and Computers
"Mike Brannigan " <mikebran@online.microsoft.com> wrote in message news:O5qGXY1XEHA.808@tk2msftngp13.phx.gbl...... -
Do you need Framework 1.1 to access Active Directory objects on a Windows 2003 server with ASP.NET?
Some of our developers are having a problem making certain code work that reads the contents of OUs in our Active Directory. It reads fine when... -
Eric Weintraub #2
Re: Exporting users that below to a certain group - windows 2003active directory
On 6/3/04 10:53 AM, in article e#o6TqXSEHA.1732@TK2MSFTNGP09.phx.gbl, "Sabo,
Eric" <sabo_e@cup.edu> wrote:
> Is there any tool or script that will export the users names from a certain
> group from the active directory? I tried ldifde but it exports the cn
> names only. I looks at the script center, there was nothing there also.
The easy way would be to go into Active Directory Users and Computers and
right click on the right hand side and use the field chooser to select only
user names
The right click and export.
If you have a lot of OU's and you use 2003 then go to AD Query at the top
select the people you by defining then export that.
It might now be a good solution but I wanted to put in my 10 cents.
Cheers
J5 - Eric A. Weintraub
Sr. Network Administrator
ScriptLogic Corp
--
Eric Weintraub Guest
-
Marin Marinov #3
Re: Exporting users that below to a certain group - windows 2003 active directory
In article <e#o6TqXSEHA.1732@TK2MSFTNGP09.phx.gbl>, [email]sabo_e@cup.edu[/email]
says...Take a shot at dsget:> Is there any tool or script that will export the users names from a certain
> group from the active directory? I tried ldifde but it exports the cn
> names only. I looks at the script center, there was nothing there also.
>
>
dsget group "CN=Backup Operators,ou=Test,dc=microsoft,dc=com" -members >
C:\Members.txt
will list all members of the Backup Operators group into the file C:
\Members.txt. You can also customize the output, see the online help
('dsget group /?').
HTH
--
Cheers,
Marin Marinov
MCT, MCSE 2003/2000/NT4.0,
MCSE:Security 2003/2000, MCP+I
-
This posting is provided "AS IS" with no warranties, and confers no
rights.
Marin Marinov Guest
-
Sabo, Eric #4
Re: Exporting users that below to a certain group - windows 2003 active directory
Thanks but that still produces them in schema format.
Is there any way else?
"Marin Marinov" <mlmarinov@askme.ca> wrote in message
news:MPG.1b291fe023dcbb99989867@msnews.microsoft.c om...certain> In article <e#o6TqXSEHA.1732@TK2MSFTNGP09.phx.gbl>, [email]sabo_e@cup.edu[/email]
> says...> > Is there any tool or script that will export the users names from a> Take a shot at dsget:> > group from the active directory? I tried ldifde but it exports the cn
> > names only. I looks at the script center, there was nothing there also.
> >
> >
> dsget group "CN=Backup Operators,ou=Test,dc=microsoft,dc=com" -members >
> C:\Members.txt
>
> will list all members of the Backup Operators group into the file C:
> \Members.txt. You can also customize the output, see the online help
> ('dsget group /?').
>
> HTH
> --
> Cheers,
> Marin Marinov
> MCT, MCSE 2003/2000/NT4.0,
> MCSE:Security 2003/2000, MCP+I
> -
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
Sabo, Eric Guest
-
Marin Marinov #5
Re: Exporting users that below to a certain group - windows 2003 active directory
In article <#SHR1CZSEHA.3012@tk2msftngp13.phx.gbl>, [email]sabo_e@cup.edu[/email]
says...<snip>> Thanks but that still produces them in schema format.
>
> Is there any way else?
Well, in Notepad you can search and replace the portion after the name
with nothing and also replace "CN=" with nothing and there you go ;)
Anyway, you can also use:
- net group "Domain Admins"
- showmbrs.exe from Win2K Resource Kit
- this script:
Set objGroup = GetObject _
("LDAP://cn=Domain Admins,cn=Users,dc=sample,dc=com")
For Each Member in objGroup.Members
arrTmp = Split(Member.Name, "=",-1,1)
Wscript.Echo arrTmp(1)
Next
- a custom application ;)
HTH
--
Cheers,
Marin Marinov
MCT, MCSE 2003/2000/NT4.0,
MCSE:Security 2003/2000, MCP+I
-
This posting is provided "AS IS" with no warranties, and confers no
rights.
Marin Marinov Guest



Reply With Quote

