PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.win.server.scripting > How to find all user and export to Excel
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
How to find all user and export to Excel

Réponse
 
LinkBack Outils de la discussion
Vieux 11/10/2007, 18h36   #1
Luis Gabriel Mieles
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to find all user and export to Excel

Hi all.

I would like to find all user with employeeid from Active Directory User and
Computer.

Thanks in advance.

Luis Gabriel Mieles.


  Réponse avec citation
Vieux 11/10/2007, 19h13   #2
Richard Mueller [MVP]
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to find all user and export to Excel

Luis Gabriel Mieles wrote:

>
> I would like to find all user with employeeid from Active Directory User
> and
> Computer.
>
> Thanks in advance.
>


I have an example VBScript program that documents all users in the domain in
an Excel spreadsheet linked here:

http://www.rlmueller.net/Create%20User%20List%203.htm

The program can be modified to only document users that have a value
assigned to the employeeID attribute. Modify this statement:

strFilter = "(&(objectCategory=person)(objectClass=user))"

so that it becomes:

strFilter = "(&(objectCategory=person)(objectClass=user)(emplo yeeID=*))"

This changes the LDAP syntax filter so the ADO query retrieves information
for all user objects where there is any value assigned to the employeeID
attribute. For more on using ADO, see this link:

http://www.rlmueller.net/ADOSearchTips.htm

--
Richard Mueller
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
--


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 03h02.


Édité par : vBulletin® version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08709 seconds with 10 queries