Welcome to WiseSoft.co.uk!
Register
About
Contact
Donate
Home
Scripts
Articles
Software
Forum
Links
Active Directory Schema Guide
Submit a Script
All Scripts
Active Directory
Computer
Database
Event Logs
Exchange/Email
File System
General
Printer
SQL Server
Account Page
Address Page
COMPlus Page
DialIn Page
Environment Page
General Page
MemberOf Page
Organization Page
Profile Page
RemoteControl Page
Sessions Page
Telephones Page
TerminalServices Page
Batch File
HTA
KiXtart
PowerShell
T-SQL
VB
VBScript
Computer Accounts
Domains, Forests & Trusts
Groups
Monitoring & Replication
Organizational Units
Schema Information
Search
Sites and Subnets
User Accounts
PowerShell
VBScript
VBScript
PowerShell
VBScript
VBScript
VBScript
VBScript
VBScript
PowerShell
VBScript
VBScript
PowerShell
VBScript
HTA
KiXtart
PowerShell
VB
VBScript
VBScript
KiXtart
PowerShell
VBScript
PowerShell
VBScript
Batch File
KiXtart
PowerShell
VBScript
HTA
VB
VBScript
HTA
KiXtart
PowerShell
VBScript
HTA
PowerShell
T-SQL
VBScript
All Articles
Active Directory
Miscellaneous
Programming
Scripting
Security
SQL Server
WiseSoft
Submit Article
All Software
TSQL DDL Code History Tool
Account Management Spreadsheet
Bulk AD Users
Password Control
Script Builder
NTFSFix
TSQL DDL Code History Tool
Bulk AD Users
Password Control
Script Builder
Account Management Spreadsheet
NTFSFix
Scripting
Guestbook
Bugs
Suggestions
General
Bugs
Suggestions
General
Bugs
Suggestions
General
Bugs
Suggestions
General
Bugs
Suggestions
General
Bugs
Suggestions
General
Login
User Name:
Password:
Remember me next time
Forgot Password?
Login using OpenID:
Create free account
Exclusive access for registered users
Registered Users:
20870
Click here to find out how you can help support wisesoft.co.uk!
home
recent topics
recent posts
search
faq
AspNetForum v.5.2.7.0
WiseSoft :: Forum
:: Forum
user:
psw:
remember me
|
lost password
|
register
Home
»
Scripting
»
Select AD User & Attributes to Output CSV
|
1/12/2010 10:40:26 AM
permalink
darefugee
Posts 2
I would like to select Active Directory Users and some of their attributes to an output CSV based on their appearance on an input CSV.
Someone must have already done this, can anyone please share what they know? Thanks.
edited by darefugee on 1/12/2010
1/14/2010 12:36:09 PM
permalink
admin
Posts 331
Hi,
You might be able to get the information you want using Bulk AD Users. You can use the "Get users from list" method - this expects a list of users, 1 per line (If you open the CSV file in excel, you should be able to copy/paste from the column). Add the attrbutes you want to export via the "Grid\Properties To Load" dialog if they don't already exist. Click the "Export to CSV" button to export the data to CSV.
Another option is to use this script to export details for all users to CSV:
http://www.wisesoft.co.uk/scripts/vbscript_extract_user_data_to_csv.aspx
You should then be able to filter the data you are interested in using a lookup in Excel. It might actually be more efficient to return the data in this way, depending on the total number of users in your Active Directory database (If you have a very large number of users, it could also be a lot slower).
Writing a script to read usernames from a CSV file, querying the attributes of those users and then writing them back out to a CSV is also an option - If you need to do it this way, please post back with some more details of the attributes you are interested in.
Hope this helps,
David
1/14/2010 2:47:18 PM
permalink
darefugee
Posts 2
Thanks Sir. Actually I did it a different way - I exported all the domain users along with the attributes I needed, to a CSV. I also already had the other list in another CSV, so I copied it and pasted into the all users CSV, then ran a slightly modified "compare" Excel macro I found somewhere else. It compared 14100 names against 2600 names and pared the results to just the matches in about 5 minutes. Good enough for my purposes.
1/31/2010 11:01:59 AM
permalink
htc3400
Posts 1
Dear Admin
Is there a way to display the password last set attribute from AD using ADbulk users tool???When i try that its actually displayed as system_comboject and does not display the date ...Please help...
Thanks
2/1/2010 12:40:07 PM
permalink
admin
Posts 331
htc3400
wrote:
Dear Admin
Is there a way to display the password last set attribute from AD using ADbulk users tool???When i try that its actually displayed as system_comboject and does not display the date ...Please help...
Thanks
Hi,
The attribute is "pwdlastset", but it requires special handling which hasn't been included in the current version of Bulk AD Users. This is because the attribute is stored as a large integer value in AD. The current version will display a value (filetime integer instead of a date) when using the "Get Users From OU" or "Get Users From Query" methods. If you refresh the grid or use a different method to select your user accounts, the value will display as "System.__ComObject".
I plan to include better support for large integer attributes in future versions of the application.
Thanks,
David
pages:
1
|
Home
»
Scripting
»
Select AD User & Attributes to Output CSV