Export Vasco & Digipass users details from Active Directory

This will export the Username, Member OU & Vasco number.

  1. Download the Quest ActiveRoles Management Shell for Active Directory shell
  2. Save this script into your hard drive as AD_Vasco_Users.ps1
    Get-QADUser -SizeLimit 0 -IncludedProperties 'vasco-LinkUserToDPToken' -ldap '(vasco-LinkUserToDPToken=*)' | Select-Object Name,'vasco-LinkUserToDPToken', @{n='VascoID';e={[regex]::match($_.'vasco-LinkUserToDPToken','^CN=([^,]+)').groups[1].value}} | export-CSV C:\Temp\Vasco_Users.csv
  3. Open the Quest ActiveRoles Management Shell for Active Directory shell shortcut as Administrator
  4. Go to the location you saved to in step 2
  5. Type .\AD_Vasco_Users.ps1
  6. Double click c:\temp\AD_Vasco_Users.csv to open the file

Leave a Comment

Your email address will not be published.

Follow

Get every new post on this blog delivered to your Inbox.

Join other followers: