Results 1 to 2 of 2

Thread: Need a vbscript which can export sAMAccount names and Primary SMTP addresses

  1. #1
    Join Date
    Apr 2012
    Posts
    1

    Need a vbscript which can export sAMAccount names and Primary SMTP addresses

    Hi All,

    I don't know much about scripting. We are still using Exchange 2003 servers. I have a list of displayNames with me.

    Please let me know if there is a VBScript solution to get these displayName attribute as input and export their corresponding sAMAccountname attribute and their Primary SMTP addresses (Need to read Only Primary SMTP from the proxyaddresses attribute)

    This would be helpful as i am in the process of working out oab issues

  2. #2
    Join Date
    Dec 2007
    Posts
    2,291

    Re: Need a vbscript which can export sAMAccount names and Primary SMTP addresses

    Can you test the below code and see if that helps:

    Code:
    Get-Content C:\UserList.txt | Get-QADUser | ft displayname, samaccountname, PrimarySMTPAddress

Similar Threads

  1. Replies: 10
    Last Post: 28-10-2011, 10:48 PM
  2. Maybe a VBScript to pull email addresses?
    By Modom in forum Active Directory
    Replies: 1
    Last Post: 03-08-2011, 04:21 PM
  3. Export Names and Email Addresses from Thunderbird
    By Mustafa k in forum Technology & Internet
    Replies: 5
    Last Post: 13-01-2011, 07:40 AM
  4. CSVD export of SMTP addresses
    By randy in forum Windows Server Help
    Replies: 6
    Last Post: 13-01-2009, 04:51 AM
  5. Replies: 3
    Last Post: 23-10-2008, 07:22 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,642,396,786.72287 seconds with 17 queries